Add missing pumpAll to Test_RandomNumberGenerator

This commit is contained in:
Jeffrey Walton 2019-08-12 06:27:10 -04:00
parent 197f5fb1df
commit ea08de08d6
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -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)));