=================================================================== RCS file: /home/cvs/OpenXM_contrib/gmp/mpz/Attic/urandomb.c,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.2 diff -u -p -r1.1.1.1 -r1.1.1.2 --- OpenXM_contrib/gmp/mpz/Attic/urandomb.c 2000/09/09 14:13:00 1.1.1.1 +++ OpenXM_contrib/gmp/mpz/Attic/urandomb.c 2003/08/25 16:06:34 1.1.1.2 @@ -2,7 +2,7 @@ integer in the range 0 to 2^N - 1, inclusive, using STATE as the random state previously initialized by a call to gmp_randinit(). -Copyright (C) 1999, 2000 Free Software Foundation, Inc. +Copyright 1999, 2000, 2002 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -25,19 +25,12 @@ MA 02111-1307, USA. */ #include "gmp-impl.h" void -#if __STDC__ -mpz_urandomb (mpz_t rop, gmp_randstate_t rstate, unsigned long int nbits) -#else -mpz_urandomb (rop, rstate, nbits) - mpz_t rop; - gmp_randstate_t rstate; - unsigned long int nbits; -#endif +mpz_urandomb (mpz_ptr rop, gmp_randstate_t rstate, unsigned long int nbits) { mp_ptr rp; mp_size_t size; - size = (nbits + BITS_PER_MP_LIMB - 1) / BITS_PER_MP_LIMB; + size = (nbits + GMP_NUMB_BITS - 1) / GMP_NUMB_BITS; if (ALLOC (rop) < size) _mpz_realloc (rop, size);