summaryrefslogtreecommitdiff
path: root/tests/misc.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2001-09-08 00:22:33 +0200
committerKevin Ryde <user42@zip.com.au>2001-09-08 00:22:33 +0200
commitdbf94ed67fbc2ffdad59231f4dfc90b16d680e83 (patch)
tree32512086cc0b7b61f059b2f0dd0e59f48f6ba1d4 /tests/misc.c
parent21b419b79bc3fff26cfc22497245c1075fc4e009 (diff)
downloadgmp-dbf94ed67fbc2ffdad59231f4dfc90b16d680e83.tar.gz
* tests/misc.c (mpz_negrandom): Use given rstate, not RANDS.
Diffstat (limited to 'tests/misc.c')
-rw-r--r--tests/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/misc.c b/tests/misc.c
index 7fc262121..d9063b001 100644
--- a/tests/misc.c
+++ b/tests/misc.c
@@ -323,7 +323,7 @@ void
mpz_negrandom (mpz_ptr rop, gmp_randstate_t rstate)
{
mp_limb_t n;
- _gmp_rand (&n, RANDS, 1);
+ _gmp_rand (&n, rstate, 1);
if (n != 0)
mpz_neg (rop, rop);
}