diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2019-11-10 11:38:32 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2019-11-10 11:39:15 -0500 |
commit | 99185ed75bba6c14a996ccf5b6b1b98b823eac0f (patch) | |
tree | bfa6d5e3326822e63159b19c34f98d539afb9703 /rand.c | |
parent | 421a2e5b9d794050d7bfd34bf0d20440cd7450ee (diff) |
wrote value hash table for compile time arguments
Diffstat (limited to 'rand.c')
-rw-r--r-- | rand.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -0,0 +1,4 @@ +static U32 rand_u32(U32 seed) { + U64 seed64 = (U64)seed; + return (U32)((seed64 * 0x832f0fda4e1a8642 + 0x41d49cd5459a2ab4) >> 32); +} |