summaryrefslogtreecommitdiff
path: root/tests/tfms.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/tfms.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/tfms.c')
-rw-r--r--tests/tfms.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/tests/tfms.c b/tests/tfms.c
index 8717e0584..f19e68055 100644
--- a/tests/tfms.c
+++ b/tests/tfms.c
@@ -382,8 +382,8 @@ main (int argc, char *argv[])
}
mpfr_set_nan (x);
- mpfr_random (y);
- mpfr_random (z);
+ mpfr_urandomb (y, RANDS);
+ mpfr_urandomb (z, RANDS);
mpfr_fms (s, x, y, z, GMP_RNDN);
if (!mpfr_nan_p (s))
{
@@ -392,8 +392,8 @@ main (int argc, char *argv[])
}
mpfr_set_nan (y);
- mpfr_random (x);
- mpfr_random (z);
+ mpfr_urandomb (x, RANDS);
+ mpfr_urandomb (z, RANDS);
mpfr_fms (s, x, y, z, GMP_RNDN);
if (!mpfr_nan_p(s))
{
@@ -402,8 +402,8 @@ main (int argc, char *argv[])
}
mpfr_set_nan (z);
- mpfr_random (y);
- mpfr_random (x);
+ mpfr_urandomb (y, RANDS);
+ mpfr_urandomb (x, RANDS);
mpfr_fms (s, x, y, z, GMP_RNDN);
if (!mpfr_nan_p (s))
{
@@ -453,7 +453,7 @@ main (int argc, char *argv[])
mpfr_set_inf (x, 1);
mpfr_set_ui (y, 0, GMP_RNDN);
- mpfr_random (z);
+ mpfr_urandomb (z, RANDS);
mpfr_fms (s, x, y, z, GMP_RNDN);
if (!mpfr_nan_p (s))
{
@@ -463,7 +463,7 @@ main (int argc, char *argv[])
mpfr_set_inf (y, 1);
mpfr_set_ui (x, 0, GMP_RNDN);
- mpfr_random (z);
+ mpfr_urandomb (z, RANDS);
mpfr_fms (s, x, y, z, GMP_RNDN);
if (!mpfr_nan_p (s))
{
@@ -472,7 +472,7 @@ main (int argc, char *argv[])
}
mpfr_set_inf (x, 1);
- mpfr_random (y); /* always positive */
+ mpfr_urandomb (y, RANDS); /* always positive */
mpfr_set_inf (z, 1);
mpfr_fms (s, x, y, z, GMP_RNDN);
if (!mpfr_nan_p (s))
@@ -482,7 +482,7 @@ main (int argc, char *argv[])
}
mpfr_set_inf (y, 1);
- mpfr_random (x);
+ mpfr_urandomb (x, RANDS);
mpfr_set_inf (z, 1);
mpfr_fms (s, x, y, z, GMP_RNDN);
if (!mpfr_nan_p (s))
@@ -492,8 +492,8 @@ main (int argc, char *argv[])
}
mpfr_set_inf (x, 1);
- mpfr_random (y);
- mpfr_random (z);
+ mpfr_urandomb (y, RANDS);
+ mpfr_urandomb (z, RANDS);
mpfr_fms (s, x, y, z, GMP_RNDN);
if (!mpfr_inf_p (s) || mpfr_sgn (s) < 0)
{
@@ -502,8 +502,8 @@ main (int argc, char *argv[])
}
mpfr_set_inf (y, 1);
- mpfr_random (x);
- mpfr_random (z);
+ mpfr_urandomb (x, RANDS);
+ mpfr_urandomb (z, RANDS);
mpfr_fms (s, x, y, z, GMP_RNDN);
if (!mpfr_inf_p (s) || mpfr_sgn (s) < 0)
{
@@ -512,8 +512,8 @@ main (int argc, char *argv[])
}
mpfr_set_inf (z, -1);
- mpfr_random (x);
- mpfr_random (y);
+ mpfr_urandomb (x, RANDS);
+ mpfr_urandomb (y, RANDS);
mpfr_fms (s, x, y, z, GMP_RNDN);
if (!mpfr_inf_p (s) || mpfr_sgn (s) < 0)
{
@@ -522,8 +522,8 @@ main (int argc, char *argv[])
}
mpfr_set_ui (x, 0, GMP_RNDN);
- mpfr_random (y);
- mpfr_random (z);
+ mpfr_urandomb (y, RANDS);
+ mpfr_urandomb (z, RANDS);
mpfr_fms (s, x, y, z, GMP_RNDN);
mpfr_neg (z, z, GMP_RNDN);
if (mpfr_cmp (s, z))
@@ -533,8 +533,8 @@ main (int argc, char *argv[])
}
mpfr_set_ui (y, 0, GMP_RNDN);
- mpfr_random (x);
- mpfr_random (z);
+ mpfr_urandomb (x, RANDS);
+ mpfr_urandomb (z, RANDS);
mpfr_fms (s, x, y, z, GMP_RNDN);
mpfr_neg (z, z, GMP_RNDN);
if (mpfr_cmp (s, z))
@@ -567,9 +567,9 @@ main (int argc, char *argv[])
for (n=0; n<N; n++)
{
- mpfr_random (x);
- mpfr_random (y);
- mpfr_random (z);
+ mpfr_urandomb (x, RANDS);
+ mpfr_urandomb (y, RANDS);
+ mpfr_urandomb (z, RANDS);
if (randlimb () % 2)
mpfr_neg (x, x, GMP_RNDN);