aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/rng/rng.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-01-23 10:44:18 -0500
committerJack Lloyd <[email protected]>2016-07-17 10:43:40 -0400
commit4c5847412d41756aab738a3746666cfaffe5d4af (patch)
tree2c1956bdaed1a9528575ff033c9973c8c417ccae /src/lib/rng/rng.cpp
parent255ec3717e95492184c9499685b7204a292f7141 (diff)
Make the DRBG hash selectable in build.h with BOTAN_AUTO_RNG_DRBG_HASH_FUNCTION
Add some missing overrides
Diffstat (limited to 'src/lib/rng/rng.cpp')
-rw-r--r--src/lib/rng/rng.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/rng/rng.cpp b/src/lib/rng/rng.cpp
index 218b9c842..526693561 100644
--- a/src/lib/rng/rng.cpp
+++ b/src/lib/rng/rng.cpp
@@ -112,7 +112,7 @@ RandomNumberGenerator* RandomNumberGenerator::make_rng()
AutoSeeded_RNG::AutoSeeded_RNG(size_t max_bytes_before_reseed)
{
- m_rng.reset(new HMAC_DRBG("SHA-384", max_bytes_before_reseed));
+ m_rng.reset(new HMAC_DRBG(BOTAN_AUTO_RNG_DRBG_HASH_FUNCTION, max_bytes_before_reseed));
size_t bits = m_rng->reseed(384);
if(!m_rng->is_seeded())
{