aboutsummaryrefslogtreecommitdiffstats
path: root/src/rng/x931_rng
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-01-27 06:06:59 +0000
committerlloyd <[email protected]>2009-01-27 06:06:59 +0000
commit497e3656c1141098ab76dc0fb7922e9e9d5b6bc8 (patch)
tree70621faf857e67f18a755c915e708b7b713e40f9 /src/rng/x931_rng
parentc055f425107cf20c1b8b7c692d5133509dfad52e (diff)
Major change in RNG semantics: you must call reseed before calling
randomize, or PRNG_Unseeded will be thrown.
Diffstat (limited to 'src/rng/x931_rng')
-rw-r--r--src/rng/x931_rng/x931_rng.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rng/x931_rng/x931_rng.cpp b/src/rng/x931_rng/x931_rng.cpp
index b947f525d..4b33f4c5e 100644
--- a/src/rng/x931_rng/x931_rng.cpp
+++ b/src/rng/x931_rng/x931_rng.cpp
@@ -15,7 +15,7 @@ namespace Botan {
void ANSI_X931_RNG::randomize(byte out[], u32bit length)
{
if(!is_seeded())
- reseed(8 * cipher->BLOCK_SIZE);
+ throw PRNG_Unseeded(name());
while(length)
{