You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
-Fixes from source code analyzizer, closes #1768
This commit is contained in:
@@ -48,8 +48,8 @@ uint32_t Math::rand_from_seed(uint32_t *seed) {
|
||||
s = 0x12345987;
|
||||
k = s / 127773;
|
||||
s = 16807 * (s - k * 127773) - 2836 * k;
|
||||
if (s < 0)
|
||||
s += 2147483647;
|
||||
// if (s < 0)
|
||||
// s += 2147483647;
|
||||
(*seed) = s;
|
||||
return (s & Math::RANDOM_MAX);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user