diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-03-21 15:35:48 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-03-21 15:35:48 +0000 |
commit | 7563e1b2676d837c96ed25e361a5e9dd714567dc (patch) | |
tree | 33906130053295abaaf74e98f81b794b8eece54b /tests/tmul_ui.c | |
parent | 0df22d500aef3b11656722b40e21890ee1a5c531 (diff) | |
download | mpfr-7563e1b2676d837c96ed25e361a5e9dd714567dc.tar.gz |
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
Diffstat (limited to 'tests/tmul_ui.c')
-rw-r--r-- | tests/tmul_ui.c | 3 |
1 files changed, 2 insertions, 1 deletions
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"); |