summaryrefslogtreecommitdiff
path: root/tests/trandom.c
diff options
context:
space:
mode:
authorthevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4>2007-11-20 11:21:10 +0000
committerthevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4>2007-11-20 11:21:10 +0000
commit8464b464ea878d1fcda732579cf8b1b331baf541 (patch)
treeb5e27e5d826c217e7e2a14899bf2ce9a4a14cb26 /tests/trandom.c
parent22a27b5f35282f2479e12a4e719ebc419599b9d7 (diff)
downloadmpfr-8464b464ea878d1fcda732579cf8b1b331baf541.tar.gz
use of RANDS instead of __gmp_rands
tset_f.c add checking with random values git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4956 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/trandom.c')
-rw-r--r--tests/trandom.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/trandom.c b/tests/trandom.c
index 364f6648d..798d2ff1f 100644
--- a/tests/trandom.c
+++ b/tests/trandom.c
@@ -22,7 +22,6 @@ MA 02110-1301, USA. */
#include <stdio.h>
#include <stdlib.h>
-#include <time.h>
#include "mpfr-test.h"
@@ -196,7 +195,7 @@ test_urandomb (long nbtests, mp_prec_t prec, int verbose)
for (k = 0; k < nbtests; k++)
{
- mpfr_urandomb (x, __gmp_rands);
+ mpfr_urandomb (x, RANDS);
/* check that lower bits are zero */
if (MPFR_MANT(x)[0] & MPFR_LIMB_MASK(sh))
{
@@ -212,7 +211,7 @@ test_urandomb (long nbtests, mp_prec_t prec, int verbose)
emin = mpfr_get_emin ();
set_emin (1); /* the generated number in [0,1[ is not in the exponent
range, except if it is zero */
- k = mpfr_urandomb (x, __gmp_rands);
+ k = mpfr_urandomb (x, RANDS);
if (MPFR_IS_ZERO(x) == 0 && (k == 0 || mpfr_nan_p (x) == 0))
{
printf ("Error in mpfr_urandomb, expected NaN, got ");