From 4e0bd1897b99d12fa5a07f2765b0670c22300cf4 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Mon, 28 Aug 2017 00:51:57 +0000 Subject: Corrections for use with --with-gmp-build. * tests/tests.c: use __gmp_rands instead of mpfr_rands (which was introduced by r11666). * tests/turandom.c: use RANDS instead of mpfr_rands (which was introduced by r11649). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11672 280ebfd0-de03-0410-8827-d642c229c3f4 --- tests/tests.c | 6 +++--- tests/turandom.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/tests.c b/tests/tests.c index e9470767f..3514de2fd 100644 --- a/tests/tests.c +++ b/tests/tests.c @@ -342,7 +342,7 @@ tests_rand_start (void) if (! (seed == 0 || seed == 1)) { printf ("Re-seeding with GMP_CHECK_RANDOMIZE=%lu\n", seed); - gmp_randseed_ui (mpfr_rands, seed); + gmp_randseed_ui (__gmp_rands, seed); } else { @@ -355,13 +355,13 @@ tests_rand_start (void) time (&tv); seed = tv; #endif - gmp_randseed_ui (mpfr_rands, seed); + gmp_randseed_ui (__gmp_rands, seed); printf ("Seed GMP_CHECK_RANDOMIZE=%lu " "(include this in bug reports)\n", seed); } } else - gmp_randseed_ui (mpfr_rands, 0x2143FEDC); + gmp_randseed_ui (__gmp_rands, 0x2143FEDC); } static void diff --git a/tests/turandom.c b/tests/turandom.c index 53fce84e3..0c0129dfa 100644 --- a/tests/turandom.c +++ b/tests/turandom.c @@ -264,7 +264,7 @@ underflow_tests (void) for (k = 0; k < 100; k++) { mpfr_clear_flags (); - inex = mpfr_urandom (x, mpfr_rands, (mpfr_rnd_t) rnd); + inex = mpfr_urandom (x, RANDS, (mpfr_rnd_t) rnd); flags = __gmpfr_flags; MPFR_ASSERTN (mpfr_inexflag_p ()); if (MPFR_IS_NEG (x)) @@ -328,7 +328,7 @@ overflow_tests (void) for (k = 0; k < 100; k++) { mpfr_clear_flags (); - inex = mpfr_urandom (x, mpfr_rands, (mpfr_rnd_t) rnd); + inex = mpfr_urandom (x, RANDS, (mpfr_rnd_t) rnd); flags = __gmpfr_flags; MPFR_ASSERTN (mpfr_inexflag_p ()); if (MPFR_IS_NEG (x)) -- cgit v1.2.1