aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-05-24 19:14:00 +0000
committerlloyd <[email protected]>2008-05-24 19:14:00 +0000
commitbe4c408997cf182d974c33b1c62d7f6605c55f3e (patch)
treeaad4126f540bdb24be1a20b765ca73dbacd2b38c /include
parent117ee205ea987df26945e28373a66716fee06876 (diff)
Remove random_integer() and replace it with a BigInt constructor taking a
RandomNumberGenerator reference. Update all callers.
Diffstat (limited to 'include')
-rw-r--r--include/bigint.h1
-rw-r--r--include/numthry.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/include/bigint.h b/include/bigint.h
index 5c4a9c997..2487fa91c 100644
--- a/include/bigint.h
+++ b/include/bigint.h
@@ -102,6 +102,7 @@ class BOTAN_DLL BigInt
BigInt(const BigInt&);
BigInt(const std::string&);
BigInt(const byte[], u32bit, Base = Binary);
+ BigInt(RandomNumberGenerator& rng, u32bit bits);
BigInt(Sign, u32bit);
BigInt(NumberType, u32bit);
private:
diff --git a/include/numthry.h b/include/numthry.h
index 6ca06be10..c6313bdb7 100644
--- a/include/numthry.h
+++ b/include/numthry.h
@@ -58,7 +58,6 @@ bool BOTAN_DLL run_primality_tests(RandomNumberGenerator&,
/*************************************************
* Random Number Generation *
*************************************************/
-BigInt BOTAN_DLL random_integer(RandomNumberGenerator&, u32bit);
BigInt BOTAN_DLL random_integer(RandomNumberGenerator&,
const BigInt&, const BigInt&);