summaryrefslogtreecommitdiff
path: root/mpz/urandomb.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2000-04-10 13:17:31 +0200
committerLinus Nordberg <linus@nordberg.se>2000-04-10 13:17:31 +0200
commitca6be053cd0d759ef5a8cff53f78f749fe4330b7 (patch)
tree2a2ef490a831ad8ba80abf49ac522034691a6578 /mpz/urandomb.c
parent6610cbc458ba35599bc8d1f18df001ea409d3f1f (diff)
downloadgmp-ca6be053cd0d759ef5a8cff53f78f749fe4330b7.tar.gz
Rename most of the random number functions, structs and some of the struct members.
Diffstat (limited to 'mpz/urandomb.c')
-rw-r--r--mpz/urandomb.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/mpz/urandomb.c b/mpz/urandomb.c
index 70c4532da..d03529165 100644
--- a/mpz/urandomb.c
+++ b/mpz/urandomb.c
@@ -1,6 +1,6 @@
-/* urandomb (rop, state, n) -- Generate a uniform pseudorandom integer
- in the range 0 to 2^N - 1, inclusive, using STATE as the random
- state previously initialized by a call to gmp_rand_init().
+/* mpz_urandomb (rop, state, n) -- Generate a uniform pseudorandom
+ 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.
@@ -26,11 +26,11 @@ MA 02111-1307, USA. */
void
#if __STDC__
-mpz_urandomb (mpz_t rop, gmp_rand_state s, unsigned long int nbits)
+mpz_urandomb (mpz_t rop, gmp_randstate_t rstate, unsigned long int nbits)
#else
-mpz_urandomb (rop, s, nbits)
+mpz_urandomb (rop, rstate, nbits)
mpz_t rop;
- gmp_rand_state s;
+ gmp_randstate_t rstate;
unsigned long int nbits;
#endif
{
@@ -43,7 +43,7 @@ mpz_urandomb (rop, s, nbits)
rp = PTR (rop);
- gmp_rand_getraw (rp, s, nbits);
+ _gmp_rand (rp, rstate, nbits);
MPN_NORMALIZE (rp, size);
SIZ (rop) = size;
}