aboutsummaryrefslogtreecommitdiff
path: root/numalgo.h
diff options
context:
space:
mode:
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]