diff options
author | Jack Lloyd <[email protected]> | 2017-08-03 10:52:59 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-08-03 10:52:59 -0400 |
commit | 479a475ba460cdc9f99a62de0a794e20491e0d7b (patch) | |
tree | 93a7eddd0b13c3664e11bfe225cc9c10fe343b15 /src/lib/rng/stateful_rng/stateful_rng.cpp | |
parent | 6ce23f05c68f9c6b1b4742b8eb1f3068760fdd21 (diff) |
Use new reset_reseed_counter function within Stateful_RNG as well
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(); } } |