diff options
author | Linus Nordberg <linus@nordberg.se> | 1999-05-23 21:43:31 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 1999-05-23 21:43:31 +0200 |
commit | dd651c2134d1e7d00371a41be8ad1dc0f508e5d4 (patch) | |
tree | ffa55cadbf7e42d37f95fec8b9fcc82717666859 /rand.c | |
parent | 20eec234ea3ff94d0e4f4e509be376b9565d2990 (diff) | |
download | gmp-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |