summaryrefslogtreecommitdiff
path: root/src/shuf.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2020-06-01 15:53:27 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2020-06-01 15:54:50 -0700
commitb4ab357e42f53411ccc1aac38ee637de140abc0f (patch)
tree160af93771f10616b0b222ecb5c038c2b77af41e /src/shuf.c
parentb3ff4113fddd169bff8b237764d9bea428ecb804 (diff)
downloadcoreutils-b4ab357e42f53411ccc1aac38ee637de140abc0f.tar.gz
maint: use getrandom, not getentropy
This makes for one Gnulib module less, and at runtime there’s typically just one getrandom syscall instead of several for large nonces. * gl/lib/randread.c: Include sys/random.h instead of sys/time.h and unistd.h. (get_nonce): Use getrandom, not getentropy. * gl/modules/randread (Depends-on): Depend on getrandom, not getentropy. * src/shred.c (main): * src/shuf.c (main): * src/sort.c (random_md5_state_init): Say "getrandom" rather than "getentropy" in (unlikely) diagnostic.
Diffstat (limited to 'src/shuf.c')
-rw-r--r--src/shuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shuf.c b/src/shuf.c
index 51717ff65..ccfe949d4 100644
--- a/src/shuf.c
+++ b/src/shuf.c
@@ -542,7 +542,7 @@ main (int argc, char **argv)
: randperm_bound (ahead_lines, n_lines)));
if (! randint_source)
die (EXIT_FAILURE, errno, "%s",
- quotef (random_source ? random_source : "getentropy"));
+ quotef (random_source ? random_source : "getrandom"));
if (use_reservoir_sampling)
{