aboutsummaryrefslogtreecommitdiff
path: root/src/util/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/random.c')
-rw-r--r--src/util/random.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util/random.c b/src/util/random.c
index b88bb50..844e0f6 100644
--- a/src/util/random.c
+++ b/src/util/random.c
@@ -5,8 +5,8 @@
#define _POSIX_C_SOURCE 200809L
#include "random.h"
-#include <time.h>
#include <stdint.h>
+#include <time.h>
void random_reseed(void) {
pari_ulong seed = 0;
@@ -15,7 +15,8 @@ void random_reseed(void) {
if (rand) {
size_t read = 0;
while (read < sizeof(pari_ulong)) {
- read += fread(((uint8_t*) &seed) + read, 1, sizeof(pari_ulong) - read, rand);
+ read += fread(((uint8_t *)&seed) + read, 1,
+ sizeof(pari_ulong) - read, rand);
}
fclose(rand);