summaryrefslogtreecommitdiff
path: root/mpz
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2001-10-04 19:52:20 +0200
committertege <tege@gmplib.org>2001-10-04 19:52:20 +0200
commit43897feec1b6c30020bac2681c9f52abdafa34d1 (patch)
treee287b98fbe41458ffcbad22942b9727f52497527 /mpz
parent77b3e5a0fd20a64b8db47f3ee5602f50a6dd5af1 (diff)
downloadgmp-43897feec1b6c30020bac2681c9f52abdafa34d1.tar.gz
Some debugging code removed (oops).
Diffstat (limited to 'mpz')
-rw-r--r--mpz/rrandomb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mpz/rrandomb.c b/mpz/rrandomb.c
index 00766b46d..2e446a5d5 100644
--- a/mpz/rrandomb.c
+++ b/mpz/rrandomb.c
@@ -74,7 +74,7 @@ gmp_rrandomb (mp_ptr rp, gmp_randstate_t rstate, unsigned long int nbits)
int bit_pos; /* bit number of least significant bit where
next bit field to be inserted */
mp_size_t ri; /* index in rp */
- mp_limb_t ran, ranm[3]; /* buffer for random bits */
+ mp_limb_t ran, ranm; /* buffer for random bits */
mp_limb_t acc; /* accumulate output random data here */
int ran_nbits; /* number of valid bits in ran */
@@ -87,8 +87,8 @@ gmp_rrandomb (mp_ptr rp, gmp_randstate_t rstate, unsigned long int nbits)
{
if (ran_nbits < LOGBITS_PER_BLOCK + 1)
{
- _gmp_rand (ranm+1, rstate, BITS_PER_RANDCALL);
- ran = ranm[1];
+ _gmp_rand (&ranm, rstate, BITS_PER_RANDCALL);
+ ran = ranm;
ran_nbits = BITS_PER_RANDCALL;
}