Add missing pumpAll to Test_RandomNumberGenerator
parent
197f5fb1df
commit
ea08de08d6
|
|
@ -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
|
// 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
|
// not that badly. For example, we would see "100000 generated bytes
|
||||||
// compressed to 98749 bytes by DEFLATE". Once we zero'd the block, the
|
// compressed to 98749 bytes by DEFLATE". Once we zero'd the block, the
|
||||||
// message changed to "100000 generated bytes compressed to 27 bytes by
|
// message changed to "100000 generated bytes compressed to 98000 bytes
|
||||||
// DEFLATE". Doh...
|
// by DEFLATE".
|
||||||
SecByteBlock block(NULLPTR, GENERATE_SIZE);
|
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()));
|
MeterFilter meter(new Redirector(TheBitBucket()));
|
||||||
StringSource(block, block.size(), true, new Deflator(new Redirector(meter)));
|
StringSource(block, block.size(), true, new Deflator(new Redirector(meter)));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue