diff options
author | Paul R. Eggert <eggert@cs.ucla.edu> | 2010-07-16 14:02:08 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2010-07-16 15:49:05 -0700 |
commit | e7523efb7d73cefcbd76b499f19fb473f8eb2d13 (patch) | |
tree | 0f352ee8475d441df799233ccc62c80661b27d33 /src/Makefile.am | |
parent | 78e6fb04890aae3937ba3a00d1e0cdd3bca1770e (diff) | |
download | coreutils-e7523efb7d73cefcbd76b499f19fb473f8eb2d13.tar.xz |
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 <sys/time.h> 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.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 7 |
1 files changed, 1 insertions, 6 deletions
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) |