diff options
-rw-r--r-- | THANKS | 1 | ||||
-rw-r--r-- | cipher/random.c | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -4,6 +4,7 @@ code. Here is a list of those people. Help me keep it complete and free of errors. Anand Kumria wildfire@progsoc.uts.edu.au +Ariel T Glenn ariel@columbia.edu Brian Warner warner@lothar.com Caskey L. Dickson caskey@technocage.com Charles Levert charles@comm.polymtl.ca diff --git a/cipher/random.c b/cipher/random.c index 29b82ee7..e22f3d70 100644 --- a/cipher/random.c +++ b/cipher/random.c @@ -124,6 +124,8 @@ get_random_bits( size_t nbits, int level, int secure ) byte *buf; size_t nbytes = (nbits+7)/8; + if( quick_test && level > 1 ) + level = 1; MASK_LEVEL(level); buf = secure && secure_alloc ? m_alloc_secure( nbytes ) : m_alloc( nbytes ); read_pool( buf, nbytes, level ); |