summaryrefslogtreecommitdiff
path: root/mpn
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2002-04-29 14:13:00 +0200
committertege <tege@gmplib.org>2002-04-29 14:13:00 +0200
commitbfdd2c3703a6045ee19cb9929074d539b255e8fb (patch)
tree124640b00b4ab5e6687ca8d2d00d8bf938fd7cd5 /mpn
parentdff754a443ebedae0e922459e4ad4107339bc1c9 (diff)
downloadgmp-bfdd2c3703a6045ee19cb9929074d539b255e8fb.tar.gz
Nailify.
Diffstat (limited to 'mpn')
-rw-r--r--mpn/generic/random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpn/generic/random.c b/mpn/generic/random.c
index c630f6f29..37bc47f5d 100644
--- a/mpn/generic/random.c
+++ b/mpn/generic/random.c
@@ -34,9 +34,9 @@ mpn_random (mp_ptr ptr, mp_size_t size)
return;
rands = RANDS;
- _gmp_rand (ptr, rands, size * BITS_PER_MP_LIMB);
+ _gmp_rand (ptr, rands, size * GMP_NUMB_BITS);
/* Make sure the most significant limb is non-zero. */
while (ptr[size-1] == 0)
- _gmp_rand (&ptr[size-1], rands, BITS_PER_MP_LIMB);
+ _gmp_rand (&ptr[size-1], rands, GMP_NUMB_BITS);
}