aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2010-07-03 22:35:47 -0400
committerJeff Garzik <jgarzik@redhat.com>2010-07-03 22:35:47 -0400
commitdc51bdc91b67e16b1b2cdfd86cc47d98612bf93a (patch)
tree38143128a779b2dfc3becbb35f0dffbc6bb50403
parentaf13e6d896cd52b283ce89534314876ea859f848 (diff)
downloadrng-tools-dc51bdc91b67e16b1b2cdfd86cc47d98612bf93a.tar.gz
Default to /dev/hw_random for RNG device name.
This matches the most prevalent, current Linux usage. Imported from RHEL 6 rng-tools. Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
-rw-r--r--rngd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rngd.c b/rngd.c
index 8cb2ed1..5c32ed6 100644
--- a/rngd.c
+++ b/rngd.c
@@ -81,7 +81,7 @@ static struct argp_option options[] = {
"Kernel device used for random number output (default: /dev/random)" },
{ "rng-device", 'r', "file", 0,
- "Kernel device used for random number input (default: /dev/hwrandom)" },
+ "Kernel device used for random number input (default: /dev/hw_random)" },
{ "random-step", 's', "nnn", 0,
"Number of bytes written to random-device at a time (default: 64)" },
@@ -96,7 +96,7 @@ static struct argp_option options[] = {
};
static struct arguments default_arguments = {
- .rng_name = "/dev/hwrandom",
+ .rng_name = "/dev/hw_random",
.random_name = "/dev/random",
.poll_timeout = 60,
.random_step = 64,