Set default init values for random #3954
This commit is contained in:
parent
33b32ca53a
commit
f1007554a0
9
src/external/rprand.h
vendored
9
src/external/rprand.h
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user