aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/rng
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-03-16 18:42:49 -0400
committerJack Lloyd <[email protected]>2016-03-16 18:42:49 -0400
commitb5d8783fccbd4b6686708fd4f2f84eaada3e8fed (patch)
tree75e6615a0c972da54f29593dd19f468b3a1fe0c3 /src/lib/rng
parentf209329d885310fb510742317a20d1f51099b29e (diff)
Use rejection sampling in BigInt::random_integer
Avoids the test vector contortions in RSA-KEM
Diffstat (limited to 'src/lib/rng')
-rw-r--r--src/lib/rng/rng.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/rng/rng.h b/src/lib/rng/rng.h
index 2e29a713c..3fd3dcec8 100644
--- a/src/lib/rng/rng.h
+++ b/src/lib/rng/rng.h
@@ -132,6 +132,8 @@ class BOTAN_DLL RandomNumberGenerator
virtual ~RandomNumberGenerator() {}
};
+typedef RandomNumberGenerator RNG;
+
/**
* Null/stub RNG - fails if you try to use it for anything
*/