diff options
author | Jack Lloyd <[email protected]> | 2016-11-26 20:21:37 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-11-26 20:21:37 -0500 |
commit | db6cc169d2a62b6ba9ccf881f9eb2e7c5e28692a (patch) | |
tree | c55b23ee593d23cd012e0bf33149597b1b9d461d /src/lib | |
parent | 5372d0b499ad317ab3776c9ac92df866cc6a1e84 (diff) |
Simple tests for AutoSeeded_RNG
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/rng/auto_rng/info.txt | 1 | ||||
-rw-r--r-- | src/lib/rng/rng.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/rng/auto_rng/info.txt b/src/lib/rng/auto_rng/info.txt index b66aafb45..4dd51c2b0 100644 --- a/src/lib/rng/auto_rng/info.txt +++ b/src/lib/rng/auto_rng/info.txt @@ -1,4 +1,5 @@ define AUTO_SEEDING_RNG 20160821 +define AUTO_RNG 20161126 <requires> hmac_drbg diff --git a/src/lib/rng/rng.h b/src/lib/rng/rng.h index 98ac4982f..acd131b18 100644 --- a/src/lib/rng/rng.h +++ b/src/lib/rng/rng.h @@ -193,7 +193,7 @@ class BOTAN_DLL Null_RNG final : public RandomNumberGenerator void randomize(byte[], size_t) override { - throw Exception("Null_RNG called"); + throw PRNG_Unseeded("Null_RNG called"); } void add_entropy(const byte[], size_t) override {} |