]> git.ipfire.org Git - thirdparty/rng-tools.git/log
thirdparty/rng-tools.git
12 years agoChange the default device from /dev/hw_random to /dev/hwrng
H. Peter Anvin [Mon, 30 Jul 2012 21:48:09 +0000 (14:48 -0700)] 
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>
12 years agorngd_linux: Modify write_wakeup_threshold to the fill threshold
H. Peter Anvin [Mon, 30 Jul 2012 21:42:36 +0000 (14:42 -0700)] 
rngd_linux: Modify write_wakeup_threshold to the fill threshold

The kernel.random.write_wakeup_threshold sysctl needs to be set to the
point where we want poll() on the random device to wake up.  This
replaces the level check in ioctl() used during polling.

Set it by default to 3/4 to the value of kernel.random.poolsize.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
12 years agorngd_linux: Fix () used in prototype
H. Peter Anvin [Mon, 30 Jul 2012 21:26:45 +0000 (14:26 -0700)] 
rngd_linux: Fix () used in prototype

() is an acceptable prototype in C++, but C requires (void).

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
12 years agoAdd RDRAND support
Brad Hill [Tue, 31 Jul 2012 16:26:51 +0000 (12:26 -0400)] 
Add RDRAND support

12 years agoRemoved timeout option, leaving poll unlimited
Brad Hill [Thu, 26 Jul 2012 13:51:59 +0000 (09:51 -0400)] 
Removed timeout option, leaving poll unlimited

Removed timeout variables, parameters, and argument.  Poll is now called
with -1 as the timeout.

12 years agoPrefer 'bool' to 'int', for boolean values
Jeff Garzik [Wed, 18 Jul 2012 00:36:36 +0000 (20:36 -0400)] 
Prefer 'bool' to 'int', for boolean values

12 years agoCreate PID file at startup, in daemon mode
Jeff Garzik [Wed, 18 Jul 2012 00:19:24 +0000 (20:19 -0400)] 
Create PID file at startup, in daemon mode

Code imported from Project Hail

12 years agoAdded -q and -v flags, updated help and man page
Brad Hill [Tue, 17 Jul 2012 23:50:40 +0000 (19:50 -0400)] 
Added -q and -v flags, updated help and man page

-q and --quiet flags to suppress error messages from rngd.c
-v and --verbose flags to list available entropy sources
help and man page reflect these changes and have minor fixes

14 years agoFix -Wshadow warning.
Jeff Garzik [Tue, 17 Aug 2010 20:05:07 +0000 (16:05 -0400)] 
Fix -Wshadow warning.

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
14 years agoDisable entropy source, if facing continued failures.
Jeff Garzik [Tue, 17 Aug 2010 19:59:01 +0000 (15:59 -0400)] 
Disable entropy source, if facing continued failures.

If all entropy sources are disabled, exit.

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
14 years agoRelease version 3. v3
Jeff Garzik [Sun, 4 Jul 2010 03:00:41 +0000 (23:00 -0400)] 
Release version 3.

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
14 years agos/list_add/src_list_add/
Jeff Garzik [Sun, 4 Jul 2010 03:00:18 +0000 (23:00 -0400)] 
s/list_add/src_list_add/

Avoid global namespace clashes.

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
14 years agoAdd TPM RNG support.
Jeff Garzik [Sun, 4 Jul 2010 02:43:21 +0000 (22:43 -0400)] 
Add TPM RNG support.

also, trim trailing whitespace.

Contributed by Dell, with bug fixes by David Howells @ Red Hat.

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
14 years agoDefault to /dev/hw_random for RNG device name.
Jeff Garzik [Sun, 4 Jul 2010 02:35:47 +0000 (22:35 -0400)] 
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>
14 years agorngd: fix build warning
Jeff Garzik [Thu, 24 Dec 2009 06:51:08 +0000 (01:51 -0500)] 
rngd: fix build warning

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
14 years agoExplicitly ship GPLv2 license.
Jeff Garzik [Thu, 24 Dec 2009 06:48:52 +0000 (01:48 -0500)] 
Explicitly ship GPLv2 license.

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
16 years agoFix uint64_t/unsigned long long printf(3) warnings.
Jeff Garzik [Tue, 4 Dec 2007 00:34:31 +0000 (19:34 -0500)] 
Fix uint64_t/unsigned long long printf(3) warnings.

18 years agoUpdate .gitignore.
Jeff Garzik [Tue, 25 Oct 2005 06:51:23 +0000 (02:51 -0400)] 
Update .gitignore.

18 years agoImport rng-tools from private subversion repo.
Jeff Garzik [Tue, 25 Oct 2005 06:49:12 +0000 (02:49 -0400)] 
Import rng-tools from private subversion repo.