summaryrefslogtreecommitdiff
path: root/tests/misc.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2003-11-10 22:54:17 +0100
committerKevin Ryde <user42@zip.com.au>2003-11-10 22:54:17 +0100
commit1ee960fba85f005d5abcca70e60faab8d9d74a75 (patch)
tree082903e4e730989b7587509487282013c48b00b0 /tests/misc.c
parent7944704d84a4bab378f6d7adfe643643899f5174 (diff)
downloadgmp-1ee960fba85f005d5abcca70e60faab8d9d74a75.tar.gz
* tests/misc.c (tests_rand_start): Use gmp_randinit_default
explicitly, not RANDS.
Diffstat (limited to 'tests/misc.c')
-rw-r--r--tests/misc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/misc.c b/tests/misc.c
index c62d1b8e8..355d931f9 100644
--- a/tests/misc.c
+++ b/tests/misc.c
@@ -79,7 +79,10 @@ tests_rand_start (void)
printf ("ie. ensure that function is called before the first use of RANDS.\n");
abort ();
}
- rands = RANDS;
+
+ gmp_randinit_default (__gmp_rands);
+ __gmp_rands_initialized = 1;
+ rands = __gmp_rands;
perform_seed = getenv ("GMP_CHECK_RANDOMIZE");
if (perform_seed != NULL)