aboutsummaryrefslogtreecommitdiffstats
path: root/checks/dolook2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'checks/dolook2.cpp')
-rw-r--r--checks/dolook2.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/checks/dolook2.cpp b/checks/dolook2.cpp
index ece8b261f..1e554bc0d 100644
--- a/checks/dolook2.cpp
+++ b/checks/dolook2.cpp
@@ -21,6 +21,10 @@
#include <botan/x931_rng.h>
#endif
+#if defined(BOTAN_HAS_AUTO_SEEDING_RNG)
+ #include <botan/auto_rng.h>
+#endif
+
#include "common.h"
using namespace Botan;
@@ -125,6 +129,11 @@ Filter* lookup_rng(const std::string& algname,
{
RandomNumberGenerator* prng = 0;
+#if defined(BOTAN_HAS_AUTO_SEEDING_RNG)
+ if(algname == "AutoSeeded")
+ prng = new AutoSeeded_RNG;
+#endif
+
#if defined(BOTAN_HAS_X931_RNG)
if(algname == "X9.31-RNG(TripleDES)")
prng = new ANSI_X931_RNG(get_block_cipher("TripleDES"),