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/tset_z.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/tset_z.c')
-rw-r--r-- | tests/tset_z.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/tset_z.c b/tests/tset_z.c index 214d3bb70..05231102f 100644 --- a/tests/tset_z.c +++ b/tests/tset_z.c @@ -24,6 +24,7 @@ MA 02111-1307, USA. */ #include <unistd.h> #include "gmp.h" #include "mpfr.h" +#include "mpfr-test.h" void check _PROTO((long, unsigned char)); void check_large _PROTO((void)); @@ -66,10 +67,10 @@ main (int argc, char *argv[]) long j; check_large(); - srand(getpid()); + SEED_RAND (getpid ()); check(0, 0); for (j=0; j<1000000; j++) - check(lrand48(), rand()%4); + check(LONG_RAND(), LONG_RAND()%4); return 0; } |