From 6ce23f05c68f9c6b1b4742b8eb1f3068760fdd21 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Thu, 3 Aug 2017 07:38:56 -0400 Subject: Add Stateful_RNG::reset_reseed_counter Instead of giving subclasses access to the variable directly. --- src/lib/rng/chacha_rng/chacha_rng.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/rng/chacha_rng') diff --git a/src/lib/rng/chacha_rng/chacha_rng.cpp b/src/lib/rng/chacha_rng/chacha_rng.cpp index ceccfef2c..ade92aa14 100644 --- a/src/lib/rng/chacha_rng/chacha_rng.cpp +++ b/src/lib/rng/chacha_rng/chacha_rng.cpp @@ -94,7 +94,7 @@ void ChaCha_RNG::add_entropy(const uint8_t input[], size_t input_len) if(8*input_len >= security_level()) { - m_reseed_counter = 1; + reset_reseed_counter(); } } -- cgit v1.2.3