summaryrefslogtreecommitdiff
path: root/tests/tcomparisons.c
diff options
context:
space:
mode:
authorthevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4>2008-09-18 16:33:16 +0000
committerthevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4>2008-09-18 16:33:16 +0000
commit887678b6cee0e89e40df2b3c3a1cb8e0713292fd (patch)
tree4fda1c8c4d3e2743d3f3ff10161706077d1d7646 /tests/tcomparisons.c
parent0f0fceda1553e7fd6729db25f910666873bc76a0 (diff)
downloadmpfr-887678b6cee0e89e40df2b3c3a1cb8e0713292fd.tar.gz
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
Diffstat (limited to 'tests/tcomparisons.c')
-rw-r--r--tests/tcomparisons.c6
1 files changed, 3 insertions, 3 deletions
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 */