diff options
Diffstat (limited to 'numalgo.h')
-rw-r--r-- | numalgo.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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] |