aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_pubkey.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-12-28 13:23:40 +0000
committerlloyd <[email protected]>2014-12-28 13:23:40 +0000
commit6322dc69fcf9f3effed4e51de90b3f5b163db47e (patch)
tree6cc5a7b12b5a6648f53b4b22003f9a28b425d1fa /src/tests/test_pubkey.cpp
parent69d883e83569dd81f02fbbd7dfbdcfc5a3918d49 (diff)
All tests now share an RNG. Uses system RNG if available
Diffstat (limited to 'src/tests/test_pubkey.cpp')
-rw-r--r--src/tests/test_pubkey.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/test_pubkey.cpp b/src/tests/test_pubkey.cpp
index eec7e3bde..9de9a6f9d 100644
--- a/src/tests/test_pubkey.cpp
+++ b/src/tests/test_pubkey.cpp
@@ -21,7 +21,7 @@
#include <botan/x509_key.h>
#include <botan/pkcs8.h>
#include <botan/pubkey.h>
- #include <botan/auto_rng.h>
+
#endif
#if defined(BOTAN_HAS_RSA)
@@ -193,7 +193,7 @@ size_t validate_encryption(PK_Encryptor& e, PK_Decryptor& d,
if(algo.find("/Raw") == std::string::npos)
{
- AutoSeeded_RNG rng;
+ auto& rng = test_rng();
for(size_t i = 0; i != ctext.size(); ++i)
{
@@ -297,7 +297,7 @@ size_t validate_kas(PK_Key_Agreement& kas, const std::string& algo,
size_t test_pk_keygen()
{
- AutoSeeded_RNG rng;
+ auto& rng = test_rng();
size_t tests = 0;
size_t fails = 0;