diff options
-rw-r--r-- | gl/lib/rand-isaac.c | 6 | ||||
-rw-r--r-- | gl/modules/randread | 2 | ||||
-rw-r--r-- | src/Makefile.am | 7 |
3 files changed, 5 insertions, 10 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); } diff --git a/gl/modules/randread b/gl/modules/randread index 9870cc8f3..efc795826 100644 --- a/gl/modules/randread +++ b/gl/modules/randread @@ -11,7 +11,7 @@ Depends-on: error exitfail fopen-safer -gethrxtime +gettimeofday quotearg stdbool stdint diff --git a/src/Makefile.am b/src/Makefile.am index d87fbb5b3..1a19fa611 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -328,13 +328,8 @@ ls_LDADD += $(LIB_CLOCK_GETTIME) pr_LDADD += $(LIB_CLOCK_GETTIME) touch_LDADD += $(LIB_CLOCK_GETTIME) -# for gethrxtime, randint, randread, gen_tempname, mkstemp +# for gethrxtime dd_LDADD += $(LIB_GETHRXTIME) -mktemp_LDADD += $(LIB_GETHRXTIME) -shred_LDADD += $(LIB_GETHRXTIME) -shuf_LDADD += $(LIB_GETHRXTIME) -sort_LDADD += $(LIB_GETHRXTIME) -tac_LDADD += $(LIB_GETHRXTIME) # for cap_get_file ls_LDADD += $(LIB_CAP) |