From 7563e1b2676d837c96ed25e361a5e9dd714567dc Mon Sep 17 00:00:00 2001 From: zimmerma Date: Thu, 21 Mar 2002 15:35:48 +0000 Subject: replaced rand/lrand48, drand48, srand/srand48 by macros LONG_RAND, DBL_RAND, SEED_RAND and time(NULL) by getpid() git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1762 280ebfd0-de03-0410-8827-d642c229c3f4 --- tests/tmul_ui.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/tmul_ui.c') diff --git a/tests/tmul_ui.c b/tests/tmul_ui.c index f07620cc9..3f269519a 100644 --- a/tests/tmul_ui.c +++ b/tests/tmul_ui.c @@ -26,6 +26,7 @@ MA 02111-1307, USA. */ #include "gmp-impl.h" #include "mpfr.h" #include "mpfr-impl.h" +#include "mpfr-test.h" void check_inexact _PROTO((mp_prec_t)); @@ -42,7 +43,7 @@ check_inexact (mp_prec_t p) mpfr_init (y); mpfr_init2 (z, p + mp_bits_per_limb); mpfr_random (x); - u = lrand48(); + u = LONG_RAND(); if (mpfr_mul_ui (z, x, u, GMP_RNDN)) { fprintf (stderr, "Error: result should be exact\n"); -- cgit v1.2.1