aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2012-07-30 14:48:09 -0700
committerJeff Garzik <jgarzik@redhat.com>2012-07-31 15:33:14 -0400
commit47c3d38892f04547ec4fd3878c0c80a3406218da (patch)
treee536f8957931819bd308c55a3fa4b41b54ea49ec
parent870f0d5d2f06d778a49e35d3a5f55183e5c9b9c0 (diff)
downloadrng-tools-47c3d38892f04547ec4fd3878c0c80a3406218da.tar.gz
rng-tools-47c3d38892f04547ec4fd3878c0c80a3406218da.tar.xz
rng-tools-47c3d38892f04547ec4fd3878c0c80a3406218da.zip
Change the default device from /dev/hw_random to /dev/hwrng
Change the default device name for the hardware random number device from /dev/hw_random to /dev/hwrng, which is the filename documented in devices.txt and appears to be the device name created by udev and devtmpfs. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com> 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 f6ee8a3..f1b7e1a 100644
--- a/rngd.c
+++ b/rngd.c
@@ -84,7 +84,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/hw_random)" },
+ "Kernel device used for random number input (default: /dev/hwrng)" },
{ "pid-file", 'p', "file", 0,
"File used for recording daemon PID, and multiple exclusion (default: /var/run/rngd.pid)" },
@@ -121,7 +121,7 @@ static struct arguments default_arguments = {
struct arguments *arguments = &default_arguments;
static struct rng rng_default = {
- .rng_name = "/dev/hw_random",
+ .rng_name = "/dev/hwrng",
.rng_fd = -1,
.xread = xread,
};