diff options
Diffstat (limited to 'tests/tests.c')
-rw-r--r-- | tests/tests.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/tests.c b/tests/tests.c index 4b26d1ef2..6aabacee5 100644 --- a/tests/tests.c +++ b/tests/tests.c @@ -93,7 +93,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) |