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_ecc.cpp | |
parent | 69d883e83569dd81f02fbbd7dfbdcfc5a3918d49 (diff) |
All tests now share an RNG. Uses system RNG if available
Diffstat (limited to 'src/tests/unit_ecc.cpp')
-rw-r--r-- | src/tests/unit_ecc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/unit_ecc.cpp b/src/tests/unit_ecc.cpp index 976e9d385..f7723fb12 100644 --- a/src/tests/unit_ecc.cpp +++ b/src/tests/unit_ecc.cpp @@ -11,7 +11,7 @@ #include <memory> #if defined(BOTAN_HAS_ECC_GROUP) -#include <botan/auto_rng.h> + #include <botan/bigint.h> #include <botan/numthry.h> #include <botan/curve_gfp.h> @@ -752,7 +752,7 @@ size_t test_point_swap() EC_Group dom_pars(OID("1.3.132.0.8")); - AutoSeeded_RNG rng; + auto& rng = test_rng(); PointGFp a(create_random_point(rng, dom_pars.get_curve())); PointGFp b(create_random_point(rng, dom_pars.get_curve())); @@ -776,7 +776,7 @@ size_t test_mult_sec_mass() { size_t fails = 0; - AutoSeeded_RNG rng; + auto& rng = test_rng(); EC_Group dom_pars(OID("1.3.132.0.8")); for(int i = 0; i<50; i++) @@ -850,7 +850,7 @@ size_t ecc_randomized_test() "x962_p239v3" }; - AutoSeeded_RNG rng; + auto& rng = test_rng(); size_t fails = 0; size_t tests = 0; |