aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/rng/chacha_rng/chacha_rng.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/rng/chacha_rng/chacha_rng.cpp')
-rw-r--r--src/lib/rng/chacha_rng/chacha_rng.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/rng/chacha_rng/chacha_rng.cpp b/src/lib/rng/chacha_rng/chacha_rng.cpp
index ade92aa14..ad8ee9ba8 100644
--- a/src/lib/rng/chacha_rng/chacha_rng.cpp
+++ b/src/lib/rng/chacha_rng/chacha_rng.cpp
@@ -57,6 +57,7 @@ void ChaCha_RNG::clear()
Stateful_RNG::clear();
m_hmac->set_key(std::vector<uint8_t>(m_hmac->output_length(), 0x00));
+ m_chacha->set_key(m_hmac->final());
}
void ChaCha_RNG::randomize(uint8_t output[], size_t output_len)