diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2003-06-12 16:13:49 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2003-06-12 16:13:49 +0000 |
commit | 573b63b71ddcfbc2836ee1f37c6fc0bc3accbd0a (patch) | |
tree | e94044c2aa8d50e582713343cc6dc9a1d35112cc /tests/tset_z.c | |
parent | e976dd7979c00f2fc9fc448d151fa74febe3223f (diff) | |
download | mpfr-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/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 0acb9af3a..0598e6c44 100644 --- a/tests/tset_z.c +++ b/tests/tset_z.c @@ -21,6 +21,7 @@ MA 02111-1307, USA. */ #include <stdio.h> #include <stdlib.h> +#include <limits.h> #include <time.h> #include "gmp.h" #include "mpfr.h" @@ -69,10 +70,10 @@ main (int argc, char *argv[]) tests_start_mpfr (); check_large(); - SEED_RAND (time(NULL)); + randseed (time(NULL)); check(0, 0); for (j=0; j<1000000; j++) - check(LONG_RAND(), LONG_RAND()%4); + check(randlimb () & LONG_MAX, randlimb () % 4); tests_end_mpfr (); return 0; |