diff options
Diffstat (limited to 'src/lib/rng/hmac_drbg/hmac_drbg.cpp')
-rw-r--r-- | src/lib/rng/hmac_drbg/hmac_drbg.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/rng/hmac_drbg/hmac_drbg.cpp b/src/lib/rng/hmac_drbg/hmac_drbg.cpp index 96bd791ee..03b617af3 100644 --- a/src/lib/rng/hmac_drbg/hmac_drbg.cpp +++ b/src/lib/rng/hmac_drbg/hmac_drbg.cpp @@ -38,6 +38,8 @@ void HMAC_DRBG::randomize(byte out[], size_t length) out += to_copy; } + m_reseed_counter += length; + update(nullptr, 0); // additional_data is always empty } |