summaryrefslogtreecommitdiff
path: root/random2.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2006-03-23 10:57:46 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2006-03-23 10:57:46 +0000
commitb541bb0f134e4ee14ee57c0e152b35999560a127 (patch)
tree740c114acff8111771282d8bc89fa289e67e49fa /random2.c
parent71acf5d2624962ba530ba875fcc8cd6f2a2c148a (diff)
downloadmpfr-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.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/random2.c b/random2.c
index 924c4ce12..c043e046a 100644
--- a/random2.c
+++ b/random2.c
@@ -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);
}