aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/rng/rng.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/rng/rng.h')
-rw-r--r--src/lib/rng/rng.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/rng/rng.h b/src/lib/rng/rng.h
index 1ce0d5153..23e974b92 100644
--- a/src/lib/rng/rng.h
+++ b/src/lib/rng/rng.h
@@ -66,7 +66,7 @@ class BOTAN_DLL RandomNumberGenerator
u64bit gen_mask(size_t bits)
{
if(bits == 0 || bits > 64)
- throw std::invalid_argument("RandomNumberGenerator::gen_mask invalid argument");
+ throw Invalid_Argument("RandomNumberGenerator::gen_mask invalid argument");
const u64bit mask = ((1 << bits) - 1);
return this->get_random<u64bit>() & mask;