diff options
Diffstat (limited to 'cipher/random.c')
-rw-r--r-- | cipher/random.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cipher/random.c b/cipher/random.c index 29b82ee7c..e22f3d70c 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 ); |