aboutsummaryrefslogtreecommitdiff
path: root/numalgo.h
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-10-06 20:20:49 +0200
committertomsmeding <tom.smeding@gmail.com>2016-10-06 20:20:49 +0200
commit053d2e76ad5848c8d95d7d56bfe7f8a6a324c229 (patch)
tree0c7c16fc80d00d42913fc24d06f82794c8a6b944 /numalgo.h
parent98c5cb7a99222b3dc2d78468bd953a4a4a4142d7 (diff)
RNG
Diffstat (limited to 'numalgo.h')
-rw-r--r--numalgo.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/numalgo.h b/numalgo.h
index 2304e94..9f108e6 100644
--- a/numalgo.h
+++ b/numalgo.h
@@ -2,6 +2,9 @@
#include <cstdint>
#include "bigint.h"
+#include "rng.h"
+
+int64_t gcd(int64_t a,int64_t b);
Bigint gcd(Bigint a,Bigint b);
Bigint egcd(const Bigint &a,const Bigint &b,Bigint &x,Bigint &y);
@@ -15,4 +18,4 @@ Bigint isqrt(const Bigint &n);
int ilog2(uint64_t i);
-Bigint cryptrandom_big(const Bigint &upperbound); //Return value in [0,upperbound]
+Bigint bigrandom(Rng &rng,const Bigint &upperbound); //Return value in [0,upperbound]