summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-10-26 16:01:03 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-10-26 16:01:03 +0000
commit8f9e71f46236bbc896e671807a54e02f769429f6 (patch)
tree1d6cba2b9a0c0a59cd6f46f9cda34d6435e58a3d /tests
parenta80407d375b7b50c309c042053ef88155dca9c29 (diff)
downloadmpfr-8f9e71f46236bbc896e671807a54e02f769429f6.tar.gz
drand -> drand48
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1440 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests')
-rw-r--r--tests/tadd_ui.c2
-rw-r--r--tests/tsub_ui.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/tadd_ui.c b/tests/tadd_ui.c
index 5a68f79e7..453239320 100644
--- a/tests/tadd_ui.c
+++ b/tests/tadd_ui.c
@@ -92,7 +92,7 @@ int main(argc,argv) int argc; char *argv[];
N = (argc<2) ? 1000000 : atoi(argv[1]);
rnd_mode = (argc<3) ? -1 : atoi(argv[2]);
for (i=0;i<1000000;i++) {
- x = drand();
+ x = drand48();
y = lrand48();
if (ABS(x)>2.2e-307 && x+y<1.7e+308 && x+y>-1.7e308) {
/* avoid denormalized numbers and overflows */
diff --git a/tests/tsub_ui.c b/tests/tsub_ui.c
index 0aa6f5e1d..ad4ed825c 100644
--- a/tests/tsub_ui.c
+++ b/tests/tsub_ui.c
@@ -129,7 +129,7 @@ int main(argc,argv) int argc; char *argv[];
N = (argc<2) ? 1000000 : atoi(argv[1]);
rnd_mode = (argc<3) ? -1 : atoi(argv[2]);
for (i=0;i<1000000;i++) {
- x = drand();
+ x = drand48();
y = lrand48();
if (ABS(x)>2.2e-307 && x+y<1.7e+308 && x+y>-1.7e308) {
/* avoid denormalized numbers and overflows */