diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2022-03-01 18:04:42 -0500 |
---|---|---|
committer | GriffinR <griffin.g.richards@gmail.com> | 2022-03-02 02:05:07 -0500 |
commit | 16aacb064835c11204004d8e1115131ef718eeaf (patch) | |
tree | 37d491e58cdb21020f1fa1f7b1521aed44864033 /src/random.c | |
parent | 82f0cced2dbe3265681c140a91e2970b64a31422 (diff) |
Sync pokemon jump documentation
Diffstat (limited to 'src/random.c')
-rw-r--r-- | src/random.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/random.c b/src/random.c index cb12ec805..413a3e60d 100644 --- a/src/random.c +++ b/src/random.c @@ -1,4 +1,5 @@ #include "global.h" +#include "random.h" // The number 1103515245 comes from the example implementation // of rand and srand in the ISO C standard. @@ -7,7 +8,7 @@ u32 gRngValue; u16 Random(void) { - gRngValue = 1103515245 * gRngValue + 24691; + gRngValue = ISO_RANDOMIZE1(gRngValue); return gRngValue >> 16; } |