From 2823a720bc1081a48cd142788622087adfd3e5dc Mon Sep 17 00:00:00 2001 From: engineer124 <47598039+engineer124@users.noreply.github.com> Date: Fri, 10 Nov 2023 10:28:16 +1100 Subject: Match `Environment_DrawSkyboxStarsImpl` (z_kankyo OK), introduce `rand.h` (#1476) * match Environment_DrawSkyboxStarsImpl * revert * PR Review * small fix * group pads together * Color_RGBA8_u32 --- src/boot/O2/rand.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/boot/O2') 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. */ -- cgit v1.2.3