summaryrefslogtreecommitdiff
path: root/src/boot
diff options
context:
space:
mode:
authorengineer124 <47598039+engineer124@users.noreply.github.com>2023-11-10 10:28:16 +1100
committerGitHub <noreply@github.com>2023-11-10 10:28:16 +1100
commit2823a720bc1081a48cd142788622087adfd3e5dc (patch)
tree9e7b84998154fbd620d835da2f4066e4bb56a80f /src/boot
parente96f18d4e720663f79c6a7dc74c19b3c7f83ea5f (diff)
Match `Environment_DrawSkyboxStarsImpl` (z_kankyo OK), introduce `rand.h` (#1476)
* match Environment_DrawSkyboxStarsImpl * revert * PR Review * small fix * group pads together * Color_RGBA8_u32
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/O2/rand.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/boot/O2/rand.c b/src/boot/O2/rand.c
index 9f3051717..152c8a0e7 100644
--- a/src/boot/O2/rand.c
+++ b/src/boot/O2/rand.c
@@ -1,4 +1,4 @@
-#include "global.h"
+#include "rand.h"
//! The latest generated random number, used to generate the next number in the sequence.
static u32 sRandInt = 1;
@@ -7,12 +7,6 @@ static u32 sRandInt = 1;
//! This can't be static because it is used in z_kankyo.
u32 gRandFloat;
-//! These values are recommended by the algorithms book *Numerical Recipes in C. The Art of Scientific Computing*, 2nd
-//! Edition, 1992, ISBN 0-521-43108-5. (p. 284):
-//! > This is about as good as any 32-bit linear congruential generator, entirely adequate for many uses.
-#define RAND_MULTIPLIER 1664525
-#define RAND_INCREMENT 1013904223
-
/**
* Generates the next pseudo-random integer.
*/