diff options
author | Kevin Ryde <user42@zip.com.au> | 2003-11-10 22:54:17 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2003-11-10 22:54:17 +0100 |
commit | 1ee960fba85f005d5abcca70e60faab8d9d74a75 (patch) | |
tree | 082903e4e730989b7587509487282013c48b00b0 /tests | |
parent | 7944704d84a4bab378f6d7adfe643643899f5174 (diff) | |
download | gmp-1ee960fba85f005d5abcca70e60faab8d9d74a75.tar.gz |
* tests/misc.c (tests_rand_start): Use gmp_randinit_default
explicitly, not RANDS.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/misc.c | 5 |
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) |