mirror of
https://github.com/zeldaret/mm.git
synced 2026-08-07 02:05:28 -04:00
Match Environment_DrawSkyboxStarsImpl (z_kankyo OK), introduce rand.h (#1476)
* match Environment_DrawSkyboxStarsImpl * revert * PR Review * small fix * group pads together * Color_RGBA8_u32
This commit is contained in:
+1
-7
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user