aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/rand-unix.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-06-25 10:19:08 +0000
committerWerner Koch <[email protected]>1998-06-25 10:19:08 +0000
commit06fd61d081367d1c7bdf7fd653fe56527ee2320a (patch)
treede84926892e4038c81953f635f8c3c52a9945d62 /cipher/rand-unix.c
parentsome more internall structure changes (diff)
downloadgnupg-06fd61d081367d1c7bdf7fd653fe56527ee2320a.tar.gz
gnupg-06fd61d081367d1c7bdf7fd653fe56527ee2320a.zip
nearly ready for 0.3.0
Diffstat (limited to 'cipher/rand-unix.c')
-rw-r--r--cipher/rand-unix.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/cipher/rand-unix.c b/cipher/rand-unix.c
index 93afba13a..855b23b8e 100644
--- a/cipher/rand-unix.c
+++ b/cipher/rand-unix.c
@@ -129,23 +129,11 @@ read_random_source( byte *buffer, size_t length, int level )
fd_random = open_device( "/dev/random", 8 );
fd = fd_random;
}
- else if( level == 1 ) {
- if( fd_urandom == -1 )
- fd_urandom = open_device( "/dev/urandom", 9 );
- fd = fd_urandom;
- }
else {
- /* This is level 0, which only yields simple random bytes.
- * We do not use /dev/urandom as this would remove entropy
- * from the kernel entropy pool */
- /* FIXME !!!! */
-
if( fd_urandom == -1 )
fd_urandom = open_device( "/dev/urandom", 9 );
fd = fd_urandom;
}
-
-
do {
fd_set rfds;
struct timeval tv;