summaryrefslogtreecommitdiff
path: root/tests/tcmp.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2003-06-12 16:13:49 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2003-06-12 16:13:49 +0000
commit573b63b71ddcfbc2836ee1f37c6fc0bc3accbd0a (patch)
treee94044c2aa8d50e582713343cc6dc9a1d35112cc /tests/tcmp.c
parente976dd7979c00f2fc9fc448d151fa74febe3223f (diff)
downloadmpfr-573b63b71ddcfbc2836ee1f37c6fc0bc3accbd0a.tar.gz
Replaced misc random functions by GMP ones.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2329 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tcmp.c')
-rw-r--r--tests/tcmp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/tcmp.c b/tests/tcmp.c
index a1bf851be..54d411d26 100644
--- a/tests/tcmp.c
+++ b/tests/tcmp.c
@@ -22,6 +22,7 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include <stdlib.h>
#include "gmp.h"
+#include "gmp-impl.h"
#include "mpfr.h"
#include "mpfr-impl.h"
#include "mpfr-test.h"
@@ -162,8 +163,8 @@ main (void)
for (i=0; i<1000000; )
{
- x = drand();
- y = drand();
+ x = DBL_RAND ();
+ y = DBL_RAND ();
if (!Isnan(x) && !Isnan(y))
{
i++;