diff options
author | lloyd <[email protected]> | 2014-12-28 13:23:40 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-12-28 13:23:40 +0000 |
commit | 6322dc69fcf9f3effed4e51de90b3f5b163db47e (patch) | |
tree | 6cc5a7b12b5a6648f53b4b22003f9a28b425d1fa /src/tests/unit_ecdh.cpp | |
parent | 69d883e83569dd81f02fbbd7dfbdcfc5a3918d49 (diff) |
All tests now share an RNG. Uses system RNG if available
Diffstat (limited to 'src/tests/unit_ecdh.cpp')
-rw-r--r-- | src/tests/unit_ecdh.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/unit_ecdh.cpp b/src/tests/unit_ecdh.cpp index 81e2e8fab..3dc6227e8 100644 --- a/src/tests/unit_ecdh.cpp +++ b/src/tests/unit_ecdh.cpp @@ -13,7 +13,7 @@ #include <iostream> #include <fstream> -#include <botan/auto_rng.h> + #include <botan/pubkey.h> #include <botan/ecdh.h> #if defined(BOTAN_HAS_X509_CERTIFICATES) @@ -123,7 +123,7 @@ size_t test_ecdh_unit() { size_t fails = 0; - AutoSeeded_RNG rng; + auto& rng = test_rng(); fails += test_ecdh_normal_derivation(rng); fails += test_ecdh_some_dp(rng); |