diff options
Diffstat (limited to 'libc')
-rw-r--r-- | libc/random.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/random.c b/libc/random.c index 086fa11..89fe2be 100644 --- a/libc/random.c +++ b/libc/random.c @@ -13,7 +13,7 @@ void srand(u32 seed) u32 rand() { - g_seed = (214013 * g_seed + 2531011); + g_seed = g_seed * 1103515245 + 12345; return (g_seed >> 16) & 0x7FFF; } |