8 #ifndef BOTAN_AUTO_SEEDING_RNG_H__ 9 #define BOTAN_AUTO_SEEDING_RNG_H__ 11 #include <botan/rng.h> 12 #include <botan/libstate.h> 24 { rng->randomize(out, len); }
30 std::string
name()
const {
return rng->name(); }
32 void reseed(
size_t poll_bits = 256) { rng->reseed(poll_bits); }
35 { rng->add_entropy_source(es); }
38 { rng->add_entropy(in, len); }
RandomNumberGenerator & global_rng()
void randomize(byte out[], size_t len)
void add_entropy(const byte in[], size_t len)
Library_State & global_state()
void reseed(size_t poll_bits=256)
void add_entropy_source(EntropySource *es)