summaryrefslogtreecommitdiff
path: root/testsuite/testutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/testutils.h')
-rw-r--r--testsuite/testutils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/testutils.h b/testsuite/testutils.h
index 3e239787..00555b3a 100644
--- a/testsuite/testutils.h
+++ b/testsuite/testutils.h
@@ -164,8 +164,10 @@ typedef struct knuth_lfib_ctx gmp_randstate_t[1];
void gmp_randinit_default (struct knuth_lfib_ctx *ctx);
#define gmp_randclear(state)
void mpz_urandomb (mpz_t r, struct knuth_lfib_ctx *ctx, mp_bitcnt_t bits);
+void mpz_urandomm (mpz_t r, struct knuth_lfib_ctx *ctx, const mpz_t n);
/* This is cheating */
#define mpz_rrandomb mpz_urandomb
+#define mpz_rrandomm mpz_urandomm
static inline int
test_randomize (gmp_randstate_t rands UNUSED) { return 0; }
#else /* !NETTLE_USE_MINI_GMP */