diff options
author | lloyd <[email protected]> | 2009-01-27 06:06:59 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-01-27 06:06:59 +0000 |
commit | 497e3656c1141098ab76dc0fb7922e9e9d5b6bc8 (patch) | |
tree | 70621faf857e67f18a755c915e708b7b713e40f9 /src/rng/randpool/randpool.cpp | |
parent | c055f425107cf20c1b8b7c692d5133509dfad52e (diff) |
Major change in RNG semantics: you must call reseed before calling
randomize, or PRNG_Unseeded will be thrown.
Diffstat (limited to 'src/rng/randpool/randpool.cpp')
-rw-r--r-- | src/rng/randpool/randpool.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/rng/randpool/randpool.cpp b/src/rng/randpool/randpool.cpp index 594916a84..1a111e20e 100644 --- a/src/rng/randpool/randpool.cpp +++ b/src/rng/randpool/randpool.cpp @@ -31,12 +31,7 @@ enum RANDPOOL_PRF_TAG { void Randpool::randomize(byte out[], u32bit length) { if(!is_seeded()) - { - reseed(8 * mac->OUTPUT_LENGTH); - - if(!is_seeded()) - throw PRNG_Unseeded(name()); - } + throw PRNG_Unseeded(name()); update_buffer(); while(length) |