From 56245ab663b8b8a1d7e2ade4f12e6cfd92f87edc Mon Sep 17 00:00:00 2001 From: Zhi Guan Date: Wed, 12 Oct 2022 11:26:54 +0800 Subject: [PATCH] Update rdrand.c --- src/rdrand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rdrand.c b/src/rdrand.c index ee8d3259..1dc3f8e1 100644 --- a/src/rdrand.c +++ b/src/rdrand.c @@ -16,7 +16,7 @@ int rdrand_bytes(uint8_t *buf, size_t buflen) { - uint64_t val; + unsigned long long val; uint8_t *p = (uint8_t *)&val; while (buflen) { @@ -34,7 +34,7 @@ int rdrand_bytes(uint8_t *buf, size_t buflen) int rdseed_bytes(uint8_t *buf, size_t buflen) { - uint64_t val; + unsigned long long val; uint8_t *p = (uint8_t *)&val; while (buflen) {