diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2006-03-23 10:57:46 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2006-03-23 10:57:46 +0000 |
commit | b541bb0f134e4ee14ee57c0e152b35999560a127 (patch) | |
tree | 740c114acff8111771282d8bc89fa289e67e49fa /random2.c | |
parent | 71acf5d2624962ba530ba875fcc8cd6f2a2c148a (diff) | |
download | mpfr-b541bb0f134e4ee14ee57c0e152b35999560a127.tar.gz |
random2.c: minor change suggested by Patrick.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4046 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'random2.c')
-rw-r--r-- | random2.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -65,10 +65,6 @@ mpfr_random2_raw (mpfr_ptr x, mp_size_t size, mp_exp_t exp, size = xn; k = xn - size; - /* Generate random mantissa. */ - if (!rstate) - rstate = RANDS; - /* Code extracted from GMP, function mpn_random2, to avoid the use of GMP's internal random state in MPFR */ @@ -153,5 +149,5 @@ mpfr_random2_raw (mpfr_ptr x, mp_size_t size, mp_exp_t exp, void mpfr_random2 (mpfr_ptr x, mp_size_t size, mp_exp_t exp) { - mpfr_random2_raw (x, size, exp, 0); + mpfr_random2_raw (x, size, exp, RANDS); } |