aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'cipher/random.c')
-rw-r--r--cipher/random.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cipher/random.c b/cipher/random.c
index 198663536..ffafd9a87 100644
--- a/cipher/random.c
+++ b/cipher/random.c
@@ -423,9 +423,8 @@ read_pool( byte *buffer, size_t length, int level )
int i;
ulong *sp, *dp;
- if( length >= POOLSIZE ) {
- log_fatal(_("too many random bits requested; the limit is %d\n"),
- POOLSIZE*8-1 );
+ if( length > POOLSIZE ) {
+ log_bug("too many random bits requested\n");
}
if( !pool_filled ) {