diff options
author | Kevin Ryde <user42@zip.com.au> | 2002-09-12 03:13:19 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2002-09-12 03:13:19 +0200 |
commit | 472490cd0554a333ad53d33a1d89e0c9865bdc53 (patch) | |
tree | 46368e42ea542b9795e62d61cabaa56a08ec95fa /mpf/urandomb.c | |
parent | 5972b5cb0b77792c25d7086753641db215be13c2 (diff) | |
download | gmp-472490cd0554a333ad53d33a1d89e0c9865bdc53.tar.gz |
2002-09-10 Pedro Gimeno <pggimeno@wanadoo.es>
* mpf/urandomb.c: Use BITS_TO_LIMBS.
Diffstat (limited to 'mpf/urandomb.c')
-rw-r--r-- | mpf/urandomb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpf/urandomb.c b/mpf/urandomb.c index 5bf4e8083..98ae9765c 100644 --- a/mpf/urandomb.c +++ b/mpf/urandomb.c @@ -33,7 +33,7 @@ mpf_urandomb (mpf_t rop, gmp_randstate_t rstate, unsigned long int nbits) mp_exp_t exp; rp = PTR (rop); - nlimbs = (nbits + GMP_NUMB_BITS - 1) / GMP_NUMB_BITS; + nlimbs = BITS_TO_LIMBS (nbits); _gmp_rand (rp, rstate, nbits); |