summaryrefslogtreecommitdiff
path: root/xorshift.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorshift.c')
-rw-r--r--xorshift.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xorshift.c b/xorshift.c
index b0c6e0a..9291b90 100644
--- a/xorshift.c
+++ b/xorshift.c
@@ -19,7 +19,7 @@ uint64_t xorshift_step (randctx * const st) {
}
static uint64_t rand64 () {
- uint64_t rand;
+ unsigned long long rand;
while (!__builtin_ia32_rdrand64_step (&rand));
return rand;
}