aboutsummaryrefslogtreecommitdiff
path: root/src/math/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/random.c')
-rw-r--r--src/math/random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/random.c b/src/math/random.c
index 319ed3c..37fd882 100644
--- a/src/math/random.c
+++ b/src/math/random.c
@@ -10,7 +10,7 @@ bool random_init() {
// Try urandom first
FILE *rand = fopen("/dev/urandom", "rb");
if (rand) {
- fread(&seed, sizeof(char), sizeof(pari_ulong), rand);
+ fread(&seed, 1, sizeof(pari_ulong), rand);
fclose(rand);
}
// Try worse methods later