diff options
author | lloyd <[email protected]> | 2006-09-21 04:15:27 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-09-21 04:15:27 +0000 |
commit | f7169dce7f61182bdda6b4bc8ac598ed830d82b2 (patch) | |
tree | 9b57bc5eca65ae1cfa4cd1aa3dfc1fd717c1c912 /include | |
parent | 7e7f297ce96879d851446008540a5545b2501a3c (diff) |
Add a function to Library_State allowing callers to check if the global
RNG considers itself seeded.
Diffstat (limited to 'include')
-rw-r--r-- | include/libstate.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/libstate.h b/include/libstate.h index 610f730e8..334b1501f 100644 --- a/include/libstate.h +++ b/include/libstate.h @@ -34,8 +34,10 @@ class Library_State void add_allocator(Allocator*); void set_default_allocator(const std::string&) const; - void set_prng(RandomNumberGenerator*); + bool rng_is_seeded() const { return rng->is_seeded(); } void randomize(byte[], u32bit); + + void set_prng(RandomNumberGenerator*); void add_entropy_source(EntropySource*, bool = true); void add_entropy(const byte[], u32bit); void add_entropy(EntropySource&, bool); |