From e7523efb7d73cefcbd76b499f19fb473f8eb2d13 Mon Sep 17 00:00:00 2001 From: "Paul R. Eggert" Date: Fri, 16 Jul 2010 14:02:08 -0700 Subject: randread: don't require -lrt Programs like 'sort' were linking to -lrt in order to get clock_gettime, but this was misguided: it wasted considerable resources while gaining at most 10 bits of entropy. Almost nobody needs the entropy, and there are better ways to get much better entropy for people who do need it. * gl/lib/rand-isaac.c (isaac_seed): Include not "gethrxtime.h". (isaac_seed): Use gettimeofday rather than gethrxtime. * gl/modules/randread (Depends-on): Depend on gettimeofday and not gethrxtime. * src/Makefile.am (mktemp_LDADD, shred_LDADD, shuf_LDADD, sort_LDADD): (tac_LDADD): Omit $(LIB_GETHRXTIME); no longer needed. --- gl/modules/randread | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gl/modules') 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 -- cgit v1.2.3-70-g09d2