aboutsummaryrefslogtreecommitdiffstats
path: root/src/get_pbe.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-05-24 19:49:14 +0000
committerlloyd <[email protected]>2008-05-24 19:49:14 +0000
commit8283202b8bfd5fe088f87a91a3158bef0072311f (patch)
treec7e7c773a9658e1d4cb7cd03d94ffa10f443ec9a /src/get_pbe.cpp
parent440a5d6bd0de20027d8c094abdd1390ee23eae6f (diff)
Don't use the global PRNG in implementations of PBE::new_params
Diffstat (limited to 'src/get_pbe.cpp')
-rw-r--r--src/get_pbe.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/get_pbe.cpp b/src/get_pbe.cpp
index 406cbb2bb..75aaf2f6b 100644
--- a/src/get_pbe.cpp
+++ b/src/get_pbe.cpp
@@ -7,6 +7,7 @@
#include <botan/lookup.h>
#include <botan/pbe_pkcs.h>
#include <botan/parsing.h>
+#include <botan/libstate.h>
namespace Botan {
@@ -35,7 +36,7 @@ PBE* get_pbe(const std::string& pbe_name)
if(!pbe_obj)
throw Algorithm_Not_Found(pbe_name);
- pbe_obj->new_params();
+ pbe_obj->new_params(global_state().prng_reference());
return pbe_obj;
}