diff options
author | lloyd <[email protected]> | 2008-06-27 17:08:09 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-06-27 17:08:09 +0000 |
commit | 7861a5a673ab8176d8d89e3f69a4c5a0cd649485 (patch) | |
tree | 8491af51ab57894d6ee15aca10fd84dce9f2330a /src | |
parent | 89382c8d6e8861e702def6a6e695fc2b783e7f09 (diff) |
Remove PRNG_Unseeded throw() specifies from the RNG randomize() functions.
They were probably not a good idea. If nothing else, these functions might
throw bad_alloc, and possibly other errors. Something broad like std::exception
might be applicable, but that seems pointlessly broad.
Diffstat (limited to 'src')
-rw-r--r-- | src/randpool.cpp | 2 | ||||
-rw-r--r-- | src/x931_rng.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/randpool.cpp b/src/randpool.cpp index be50ce2be..abb75c1f0 100644 --- a/src/randpool.cpp +++ b/src/randpool.cpp @@ -38,7 +38,7 @@ SecureVector<byte> randpool_prf(MessageAuthenticationCode* mac, /************************************************* * Generate a buffer of random bytes * *************************************************/ -void Randpool::randomize(byte out[], u32bit length) throw(PRNG_Unseeded) +void Randpool::randomize(byte out[], u32bit length) { if(!is_seeded()) throw PRNG_Unseeded(name()); diff --git a/src/x931_rng.cpp b/src/x931_rng.cpp index 30424f60a..d9ac69296 100644 --- a/src/x931_rng.cpp +++ b/src/x931_rng.cpp @@ -13,7 +13,7 @@ namespace Botan { /************************************************* * Generate a buffer of random bytes * *************************************************/ -void ANSI_X931_RNG::randomize(byte out[], u32bit length) throw(PRNG_Unseeded) +void ANSI_X931_RNG::randomize(byte out[], u32bit length) { if(!is_seeded()) throw PRNG_Unseeded(name()); |