aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/rng/rng.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-11-18 15:08:56 -0500
committerJack Lloyd <[email protected]>2016-11-18 15:08:56 -0500
commitdc94557f0f72766dbfba5e129da25dd0111fa564 (patch)
treef2bb54c05769d3218abf3ba29e8bc9909445e4bd /src/lib/rng/rng.h
parent2031d93f0c07e0f310cb1366a07a8350301f19b0 (diff)
Don't force HMAC_DRBG to be enabled
No need to strictly require it, and some applications may only want system RNG or RDRAND.
Diffstat (limited to 'src/lib/rng/rng.h')
-rw-r--r--src/lib/rng/rng.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/rng/rng.h b/src/lib/rng/rng.h
index 879c1acb7..98ac4982f 100644
--- a/src/lib/rng/rng.h
+++ b/src/lib/rng/rng.h
@@ -204,6 +204,8 @@ class BOTAN_DLL Null_RNG final : public RandomNumberGenerator
#if defined(BOTAN_TARGET_OS_HAS_THREADS)
/**
* Wraps access to a RNG in a mutex
+* Note that most of the time it's much better to use a RNG per thread
+* otherwise the RNG will act as an unnecessary contention point
*/
class BOTAN_DLL Serialized_RNG final : public RandomNumberGenerator
{