aboutsummaryrefslogtreecommitdiffstats
path: root/include/libstate.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-06-27 17:09:48 +0000
committerlloyd <[email protected]>2008-06-27 17:09:48 +0000
commite6a5313d766829e2f5f17763d148a26d1a358c05 (patch)
tree9f426437a3996a5a96d9cdb71897a69dfb5ad2ae /include/libstate.h
parent7861a5a673ab8176d8d89e3f69a4c5a0cd649485 (diff)
Remove the global PRNG object as well as the global list of entropy sources.
Diffstat (limited to 'include/libstate.h')
-rw-r--r--include/libstate.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/include/libstate.h b/include/libstate.h
index 69f30a886..51be2431e 100644
--- a/include/libstate.h
+++ b/include/libstate.h
@@ -45,18 +45,6 @@ class BOTAN_DLL Library_State
void add_allocator(Allocator*);
void set_default_allocator(const std::string&) const;
- bool rng_is_seeded() const { return rng->is_seeded(); }
- void randomize(byte[], u32bit);
- byte random();
-
- void set_prng(RandomNumberGenerator*);
- void add_entropy_source(EntropySource*, bool = true);
- void add_entropy(const byte[], u32bit);
- void add_entropy(EntropySource&, bool);
- u32bit seed_prng(bool, u32bit);
-
- RandomNumberGenerator& prng_reference() { return (*rng); }
-
class Config& config() const;
class Mutex* get_mutex() const;
@@ -73,11 +61,7 @@ class BOTAN_DLL Library_State
class Mutex* allocator_lock;
std::map<std::string, Allocator*> alloc_factory;
mutable Allocator* cached_default_allocator;
-
- class Mutex* rng_lock;
- RandomNumberGenerator* rng;
std::vector<Allocator*> allocators;
- std::vector<EntropySource*> entropy_sources;
class Mutex* engine_lock;
std::vector<class Engine*> engines;