summaryrefslogtreecommitdiff
path: root/gl/lib/rand-isaac.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl/lib/rand-isaac.c')
-rw-r--r--gl/lib/rand-isaac.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gl/lib/rand-isaac.c b/gl/lib/rand-isaac.c
index 52d53a393..377caa605 100644
--- a/gl/lib/rand-isaac.c
+++ b/gl/lib/rand-isaac.c
@@ -35,10 +35,9 @@
#include "rand-isaac.h"
#include <string.h>
+#include <sys/time.h>
#include <unistd.h>
-#include "gethrxtime.h"
-
/* This index operation is more efficient on many processors */
#define ind(mm, x) \
@@ -292,7 +291,8 @@ isaac_seed (struct isaac_state *s)
{ gid_t t = getgid (); ISAAC_SEED (s, t); }
{
- xtime_t t = gethrxtime ();
+ struct timeval t;
+ gettimeofday (&t, NULL);
ISAAC_SEED (s, t);
}