aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/rndw32.c
diff options
context:
space:
mode:
Diffstat (limited to 'cipher/rndw32.c')
-rw-r--r--cipher/rndw32.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cipher/rndw32.c b/cipher/rndw32.c
index b8a1aaf24..8bef6348f 100644
--- a/cipher/rndw32.c
+++ b/cipher/rndw32.c
@@ -164,6 +164,9 @@ gather_random( void (*add)(const void*, size_t, int), int requester,
unsigned int result;
unsigned int nbytes;
+ if( !level )
+ return 0;
+
if( !slow_seeder )
load_and_init_winseed();