diff options
Diffstat (limited to 'src/boot_O2')
| -rw-r--r-- | src/boot_O2/rand.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/boot_O2/rand.c b/src/boot_O2/rand.c index 6edf7490e..de603590e 100644 --- a/src/boot_O2/rand.c +++ b/src/boot_O2/rand.c @@ -1,5 +1,12 @@ #include "global.h" +// The latest generated random number, used to generate the next number in the sequence. +static u32 sRandInt = 1; + +// Space to store a value to be re-interpreted as a float. +// This can't be static because it is used in z_kankyo +u32 sRandFloat; + #define RAND_MULTIPLIER 1664525 #define RAND_INCREMENT 1013904223 |
