From 01002c7677970b234518097f5441c27932b4a94c Mon Sep 17 00:00:00 2001 From: J08nY Date: Fri, 2 Aug 2019 18:06:26 +0200 Subject: Add conductor computation. --- src/util/random.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/util/random.c') diff --git a/src/util/random.c b/src/util/random.c index eaeceaf..b88bb50 100644 --- a/src/util/random.c +++ b/src/util/random.c @@ -6,6 +6,7 @@ #include "random.h" #include +#include void random_reseed(void) { pari_ulong seed = 0; @@ -14,7 +15,7 @@ void random_reseed(void) { if (rand) { size_t read = 0; while (read < sizeof(pari_ulong)) { - read += fread(&seed + read, 1, sizeof(pari_ulong) - read, rand); + read += fread(((uint8_t*) &seed) + read, 1, sizeof(pari_ulong) - read, rand); } fclose(rand); -- cgit v1.2.3-70-g09d2