From e81e0970f7ab6c815f3396168d47fc6ab57fdf30 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 16 Oct 1998 16:00:17 +0000 Subject: last local commit --- cipher/rand-unix.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cipher/rand-unix.c') 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 { -- cgit v1.2.3