summaryrefslogtreecommitdiff
path: root/tests/tset_z.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tset_z.c')
-rw-r--r--tests/tset_z.c5
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;