aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/rng/rng.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/lib/rng/rng.h b/src/lib/rng/rng.h
index 23e974b92..a01212359 100644
--- a/src/lib/rng/rng.h
+++ b/src/lib/rng/rng.h
@@ -61,18 +61,6 @@ class BOTAN_DLL RandomNumberGenerator
}
/**
- * Return a value in range [0,2^bits)
- */
- u64bit gen_mask(size_t bits)
- {
- if(bits == 0 || bits > 64)
- throw Invalid_Argument("RandomNumberGenerator::gen_mask invalid argument");
-
- const u64bit mask = ((1 << bits) - 1);
- return this->get_random<u64bit>() & mask;
- }
-
- /**
* Return a random byte
* @return random byte
*/