summaryrefslogtreecommitdiff
path: root/tune/speed.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2001-03-08 01:16:51 +0100
committerKevin Ryde <user42@zip.com.au>2001-03-08 01:16:51 +0100
commitbc01baacb797c92394a6f8dca5b580b39ac08f02 (patch)
treeb289dbe2466a556518b29b5438cc0cd1ff0e6773 /tune/speed.c
parent7d2300e885d9ec9eb88f43a83e45e2027db5542e (diff)
downloadgmp-bc01baacb797c92394a6f8dca5b580b39ac08f02.tar.gz
* tune/speed.c, tests/devel/try.c: Seed RANDS, not srandom etc.
Diffstat (limited to 'tune/speed.c')
-rw-r--r--tune/speed.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/tune/speed.c b/tune/speed.c
index 37e1febf4..8cd7d14a3 100644
--- a/tune/speed.c
+++ b/tune/speed.c
@@ -1036,13 +1036,7 @@ main (int argc, char *argv[])
exit (1);
}
- srand (option_seed);
-#if HAVE_SRAND48
- srand48 (option_seed);
-#endif
-#if HAVE_SRANDOM
- srandom (option_seed);
-#endif
+ gmp_randseed_ui (RANDS, option_seed);
choice = (struct choice_t *) (*__gmp_allocate_func)
((argc - optind) * sizeof(choice[0]));