diff options
Diffstat (limited to 'include/xorshift64.h')
| -rw-r--r-- | include/xorshift64.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/xorshift64.h b/include/xorshift64.h index 2b13f60..120e337 100644 --- a/include/xorshift64.h +++ b/include/xorshift64.h @@ -30,7 +30,7 @@ extern uint64_t xors; } #define RANDOM64 (xors * 0x2545F4914F6CDD1D) -#define RANDOM32 ((uint32_t)RANDOM64) +#define RANDOM32 ((uint32_t)(RANDOM64>>32)) static inline uint64_t rand64(void) { XORSHIFT64; |
