From 887678b6cee0e89e40df2b3c3a1cb8e0713292fd Mon Sep 17 00:00:00 2001 From: thevenyp Date: Thu, 18 Sep 2008 16:33:16 +0000 Subject: Remove obsolete mpfr_random function and replace it by mpfr_urandomb in tests. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5640 280ebfd0-de03-0410-8827-d642c229c3f4 --- tests/tcomparisons.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/tcomparisons.c') diff --git a/tests/tcomparisons.c b/tests/tcomparisons.c index 784f55c98..34eab39a6 100644 --- a/tests/tcomparisons.c +++ b/tests/tcomparisons.c @@ -44,8 +44,8 @@ cmp_tests (void) precy = (randlimb () % 17) * 11 + MPFR_PREC_MIN; mpfr_set_prec (x, precx); mpfr_set_prec (y, precy); - mpfr_random (x); - mpfr_random (y); + mpfr_urandomb (x, RANDS); + mpfr_urandomb (y, RANDS); signx = randlimb () & 1; signy = randlimb () % 256 ? signx : 1 - signx; /* signy = signx most of the time (most interesting case) */ @@ -102,7 +102,7 @@ eq_tests (void) precx = (randlimb () % 17) * 11 + MPFR_PREC_MIN; mpfr_set_prec (x, precx); mpfr_set_prec (y, precx + (randlimb () % 64)); - mpfr_random (x); + mpfr_urandomb (x, RANDS); if (randlimb () & 1) mpfr_neg (x, x, GMP_RNDN); mpfr_set (y, x, GMP_RNDN); /* exact -> x = y */ -- cgit v1.2.1