From ea08de08d6cd8f00fd6b0d2c6589ae63a5b6d9f2 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 12 Aug 2019 06:27:10 -0400 Subject: [PATCH] Add missing pumpAll to Test_RandomNumberGenerator --- validat3.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/validat3.cpp b/validat3.cpp index bd4c4f51..819feaa0 100644 --- a/validat3.cpp +++ b/validat3.cpp @@ -433,10 +433,10 @@ bool Test_RandomNumberGenerator(RandomNumberGenerator& prng, bool drain=false) // OK due to entropy in the heap. We found Debian HURD was failing, but // not that badly. For example, we would see "100000 generated bytes // compressed to 98749 bytes by DEFLATE". Once we zero'd the block, the - // message changed to "100000 generated bytes compressed to 27 bytes by - // DEFLATE". Doh... + // message changed to "100000 generated bytes compressed to 98000 bytes + // by DEFLATE". SecByteBlock block(NULLPTR, GENERATE_SIZE); - RandomNumberSource(prng, GENERATE_SIZE, new ArraySink(block, block.size())); + RandomNumberSource(prng, GENERATE_SIZE, true, new ArraySink(block, GENERATE_SIZE)); MeterFilter meter(new Redirector(TheBitBucket())); StringSource(block, block.size(), true, new Deflator(new Redirector(meter)));