diff options
author | Werner Koch <[email protected]> | 1998-10-16 16:00:17 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1998-10-16 16:00:17 +0000 |
commit | e81e0970f7ab6c815f3396168d47fc6ab57fdf30 (patch) | |
tree | 175aa8c360560b30cf500a91eb72b34e16bdedc4 /cipher/rand-unix.c | |
parent | backup (diff) | |
download | gnupg-e81e0970f7ab6c815f3396168d47fc6ab57fdf30.tar.gz gnupg-e81e0970f7ab6c815f3396168d47fc6ab57fdf30.zip |
last local commit
Diffstat (limited to 'cipher/rand-unix.c')
-rw-r--r-- | cipher/rand-unix.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cipher/rand-unix.c b/cipher/rand-unix.c index 33f964d58..b9423e0d1 100644 --- a/cipher/rand-unix.c +++ b/cipher/rand-unix.c @@ -89,10 +89,10 @@ fast_random_poll() } -#ifdef HAVE_DEV_RANDOM /* we have the /dev/random device */ +#ifdef HAVE_DEV_RANDOM /* we have the /dev/random devices */ /**************** - * Used to open the Linux /dev/random device + * Used to open the Linux and xBSD /dev/random devices */ static int open_device( const char *name, int minor ) @@ -126,12 +126,12 @@ read_random_source( byte *buffer, size_t length, int level ) if( level >= 2 ) { if( fd_random == -1 ) - fd_random = open_device( "/dev/random", 8 ); + fd_random = open_device( NAME_OF_DEV_RANDOM, 8 ); fd = fd_random; } else { if( fd_urandom == -1 ) - fd_urandom = open_device( "/dev/urandom", 9 ); + fd_urandom = open_device( NAME_OF_DEV_URANDOM, 9 ); fd = fd_urandom; } do { |