Skip to content

Commit

Permalink
Set default init values for random #3954
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed May 1, 2024
1 parent 33b32ca commit f100755
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/external/rprand.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,13 @@ RPRANDAPI void rprand_unload_sequence(int *sequence); // Unload pseudo
//----------------------------------------------------------------------------------
// Global Variables Definition
//----------------------------------------------------------------------------------
static uint64_t rprand_seed = 0; // SplitMix64 actual seed
static uint32_t rprand_state[4] = { 0 }; // Xoshiro128** state, nitialized by SplitMix64
static uint64_t rprand_seed = 0xAABBCCDD; // SplitMix64 default seed (aligned to rprand_state)
static uint32_t rprand_state[4] = { // Xoshiro128** state, initialized by SplitMix64
0x96ea83c1,
0x218b21e5,
0xaa91febd,
0x976414d4
};

//----------------------------------------------------------------------------------
// Module internal functions declaration
Expand Down

0 comments on commit f100755

Please sign in to comment.