summaryrefslogtreecommitdiff
path: root/rand.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>1999-05-23 21:43:31 +0200
committerLinus Nordberg <linus@nordberg.se>1999-05-23 21:43:31 +0200
commitdd651c2134d1e7d00371a41be8ad1dc0f508e5d4 (patch)
treeffa55cadbf7e42d37f95fec8b9fcc82717666859 /rand.c
parent20eec234ea3ff94d0e4f4e509be376b9565d2990 (diff)
downloadgmp-dd651c2134d1e7d00371a41be8ad1dc0f508e5d4.tar.gz
The `gmp_rand_state' is now an array with one element rather than a pointer to a struct.
Add (partial) documentation for random functions.
Diffstat (limited to 'rand.c')
-rw-r--r--rand.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rand.c b/rand.c
index 8d481d1a4..ed6964a0e 100644
--- a/rand.c
+++ b/rand.c
@@ -85,18 +85,18 @@ static __gmp_rand_lc_scheme_struct __gmp_rand_scheme[] =
{0, NULL, 0, NULL} /* End of array. */
};
-/* gmp_rand_init() -- Initialize a gmp_rand_state struct. Return 0 on
+/* gmp_rand_init() -- Initialize a gmp_rand_state. Return 0 on
success and 1 on failure. */
int
#if __STDC__
-gmp_rand_init (gmp_rand_state *s,
+gmp_rand_init (gmp_rand_state s,
gmp_rand_algorithm alg,
unsigned long int size,
mpz_t seed)
#else
gmp_rand_init (s, alg, size, seed)
- gmp_rand_state *s;
+ gmp_rand_state s;
gmp_rand_algorithm alg;
unsigned long int size;
mpz_t seed;