diff options
author | lloyd <[email protected]> | 2008-04-21 18:53:06 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-04-21 18:53:06 +0000 |
commit | 143cee28231dc11c77c6cf577b04088976d95c3a (patch) | |
tree | 15e7c78add9bdd4046f051eae4d3e46c5c83e691 /checks/pk.cpp | |
parent | 90224856d6cc454eba6d5eacf4439b2d732acd65 (diff) | |
parent | a2941106b36829e0b7187ca7d2a825175ced7fa4 (diff) |
propagate from branch 'net.randombit.botan' (head 51f9ee5180a5cacdfff31504266e883b7bb0eb00)
to branch 'net.randombit.botan.remove-libstate' (head 636b767b9686261418b1cb45a6271edeef87501b)
Diffstat (limited to 'checks/pk.cpp')
-rw-r--r-- | checks/pk.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/checks/pk.cpp b/checks/pk.cpp index 478b57270..5d9417fc6 100644 --- a/checks/pk.cpp +++ b/checks/pk.cpp @@ -21,7 +21,7 @@ #include <botan/numthry.h> #include <botan/x931_rng.h> -#include <botan/rng.h> +#include <botan/libstate.h> using namespace Botan; #include "common.h" @@ -196,7 +196,7 @@ u32bit do_pk_validation_tests(const std::string& filename) global_state().set_prng(new ANSI_X931_RNG); for(u32bit j = 0; j != 2; j++) - Global_RNG::seed(true, 384); + global_state().seed_prng(true, 384); do_pk_keygen_tests(); do_x509_tests(); @@ -251,7 +251,7 @@ void validate_encryption(PK_Encryptor* e, PK_Decryptor* d, global_state().set_prng(new ANSI_X931_RNG); for(u32bit j = 0; j != 2; j++) - Global_RNG::seed(true, 384); + global_state().seed_prng(true, 384); validate_decryption(d, algo, out, message, failure); delete e; @@ -292,7 +292,7 @@ void validate_signature(PK_Verifier* v, PK_Signer* s, const std::string& algo, global_state().set_prng(new ANSI_X931_RNG); for(u32bit j = 0; j != 2; j++) - Global_RNG::seed(true, 384); + global_state().seed_prng(true, 384); delete v; delete s; |