diff options
author | Jack Lloyd <[email protected]> | 2017-08-04 12:01:08 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-08-04 12:01:08 -0400 |
commit | 58b1f7cc90b3e5c8a4bbff7adf2c001db0ef4d21 (patch) | |
tree | 27e2fcd7fd61c362218dd0c0948844a5c92a5ee2 /src/lib/rng/stateful_rng/stateful_rng.cpp | |
parent | 8a29dc8209c6e93581075bbc4c39ff5bf0cdace5 (diff) | |
parent | 71d8bfac34acbab87a2319a8581b0aefbe762672 (diff) |
Complete merge of #1137 ChaCha_RNG
For whatever reason only the first commit in that branch got
merged to master. Not sure what happened.
Diffstat (limited to 'src/lib/rng/stateful_rng/stateful_rng.cpp')
-rw-r--r-- | src/lib/rng/stateful_rng/stateful_rng.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/rng/stateful_rng/stateful_rng.cpp b/src/lib/rng/stateful_rng/stateful_rng.cpp index df33a2f54..dec791793 100644 --- a/src/lib/rng/stateful_rng/stateful_rng.cpp +++ b/src/lib/rng/stateful_rng/stateful_rng.cpp @@ -32,7 +32,7 @@ void Stateful_RNG::initialize_with(const uint8_t input[], size_t len) if(8*len >= security_level()) { - m_reseed_counter = 1; + reset_reseed_counter(); } } @@ -55,7 +55,7 @@ size_t Stateful_RNG::reseed(Entropy_Sources& srcs, if(bits_collected >= security_level()) { - m_reseed_counter = 1; + reset_reseed_counter(); } return bits_collected; @@ -67,7 +67,7 @@ void Stateful_RNG::reseed_from_rng(RandomNumberGenerator& rng, size_t poll_bits) if(poll_bits >= security_level()) { - m_reseed_counter = 1; + reset_reseed_counter(); } } |