diff options
| author | Ray <[email protected]> | 2024-05-01 22:58:33 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2024-05-01 22:58:33 +0200 |
| commit | f1007554a0a8145060797c0aa8169bdaf2c1c6b8 (patch) | |
| tree | 5e10e6cb01ff119e32ed9f168c9c2b699bf4c8c0 /src/external | |
| parent | 33b32ca53a7817a9cfdb1840a8ab75fa7cb47723 (diff) | |
| download | raylib-f1007554a0a8145060797c0aa8169bdaf2c1c6b8.tar.gz raylib-f1007554a0a8145060797c0aa8169bdaf2c1c6b8.zip | |
Set default init values for random #3954
Diffstat (limited to 'src/external')
| -rw-r--r-- | src/external/rprand.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/external/rprand.h b/src/external/rprand.h index 8d77bf75..ded6708e 100644 --- a/src/external/rprand.h +++ b/src/external/rprand.h @@ -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 |
