various: consolidate game state into a GameState struct
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I9d8998707c02e64cf177a6eeb51e399e6a6a6964
This commit is contained in:
parent
d3798cc99f
commit
786fce3814
13 changed files with 105 additions and 102 deletions
|
|
@ -6,7 +6,7 @@ static unsigned int g_seed = 1;
|
|||
// LCG parameters (from numerical recipes)
|
||||
#define LCG_A 1664525
|
||||
#define LCG_C 1013904223
|
||||
#define LCG_MOD 4294967294 // 2^32 - 2 (avoid 0)
|
||||
#define LCG_MOD 4294967294 // 2^32 - 2 (avoid 0)
|
||||
|
||||
void rng_seed(unsigned int seed) {
|
||||
// Ensure seed is never 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue