mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-27 03:40:22 +00:00
Add missing pumpAll to Test_RandomNumberGenerator
This commit is contained in:
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
|
||||
// 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)));
|
||||
|
Loading…
Reference in New Issue
Block a user