diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-08-12 06:27:10 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-08-12 06:27:10 -0400 |
commit | ea08de08d6cd8f00fd6b0d2c6589ae63a5b6d9f2 (patch) | |
tree | 599cf57989fe9a16b974ecc4c302721e2537bb40 /validat3.cpp | |
parent | 197f5fb1df74de24a0145b4cc16bbdbb280f9835 (diff) | |
download | cryptopp-git-ea08de08d6cd8f00fd6b0d2c6589ae63a5b6d9f2.tar.gz |
Add missing pumpAll to Test_RandomNumberGenerator
Diffstat (limited to 'validat3.cpp')
-rw-r--r-- | validat3.cpp | 6 |
1 files 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)));
|