diff options
author | Pádraig Brady <P@draigBrady.com> | 2009-04-06 08:42:15 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2009-04-07 19:01:46 +0100 |
commit | af5723c71e3efbfe60266162ebb5d07b45d72725 (patch) | |
tree | 0e4d0dfce546753ff8c0e749da14a6ba3a26a3b4 /src | |
parent | 9fdf5845fc87135c4f68bce79f72a25d07130240 (diff) | |
download | coreutils-af5723c71e3efbfe60266162ebb5d07b45d72725.tar.xz |
shred,sort,shuf: don't use /dev/urandom by default
Suggestion from Steven Schveighoffer at:
http://savannah.gnu.org/patch/?6797
to greatly speed up the random passes done by shred.
* gl/lib/randread.c: Default to using the internal
pseudorandom generator, rather than reading /dev/urandom
* src/shred.c (usage): remove mention of /dev/urandom
* src/shuf.c (usage); ditto
* src/sort.c (usage): ditto
* doc/coreutils.text: Document the new behaviour
for aquiring random data.
Diffstat (limited to 'src')
-rw-r--r-- | src/shred.c | 2 | ||||
-rw-r--r-- | src/shuf.c | 2 | ||||
-rw-r--r-- | src/sort.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/shred.c b/src/shred.c index 4b2b8e92f..cf40bdc4c 100644 --- a/src/shred.c +++ b/src/shred.c @@ -167,7 +167,7 @@ Mandatory arguments to long options are mandatory for short options too.\n\ printf (_("\ -f, --force change permissions to allow writing if necessary\n\ -n, --iterations=N overwrite N times instead of the default (%d)\n\ - --random-source=FILE get random bytes from FILE (default /dev/urandom)\n\ + --random-source=FILE get random bytes from FILE\n\ -s, --size=N shred this many bytes (suffixes like K, M, G accepted)\n\ "), DEFAULT_PASSES); fputs (_("\ diff --git a/src/shuf.c b/src/shuf.c index 977eedc0a..b221d0338 100644 --- a/src/shuf.c +++ b/src/shuf.c @@ -62,7 +62,7 @@ Mandatory arguments to long options are mandatory for short options too.\n\ -i, --input-range=LO-HI treat each number LO through HI as an input line\n\ -n, --head-count=COUNT output at most COUNT lines\n\ -o, --output=FILE write result to FILE instead of standard output\n\ - --random-source=FILE get random bytes from FILE (default /dev/urandom)\n\ + --random-source=FILE get random bytes from FILE\n\ -z, --zero-terminated end lines with 0 byte, not newline\n\ "), stdout); fputs (HELP_OPTION_DESCRIPTION, stdout); diff --git a/src/sort.c b/src/sort.c index 5b63a25bb..2e6ce877d 100644 --- a/src/sort.c +++ b/src/sort.c @@ -339,7 +339,7 @@ Ordering options:\n\ fputs (_("\ -n, --numeric-sort compare according to string numerical value\n\ -R, --random-sort sort by random hash of keys\n\ - --random-source=FILE get random bytes from FILE (default /dev/urandom)\n\ + --random-source=FILE get random bytes from FILE\n\ -r, --reverse reverse the result of comparisons\n\ "), stdout); fputs (_("\ |