diff options
Diffstat (limited to 'tests/terf.c')
-rw-r--r-- | tests/terf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/terf.c b/tests/terf.c index f51ab117b..2f5fdbaa6 100644 --- a/tests/terf.c +++ b/tests/terf.c @@ -51,8 +51,8 @@ test_generic (void) for (n=0; n<N; n++) { mpfr_random (x); - mpfr_mul_2exp (x, x, random () % 4, GMP_RNDN); - rnd = random () % 4; + mpfr_mul_2exp (x, x, randlimb () % 4, GMP_RNDN); + rnd = randlimb () % 4; mpfr_set_prec (y, yprec); mpfr_erf (y, x, rnd); err = (rnd == GMP_RNDN) ? yprec + 1 : yprec; |