summaryrefslogtreecommitdiff
path: root/rand/randmt.c
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@inria.fr>2021-06-06 22:53:16 +0200
committerMarc Glisse <marc.glisse@inria.fr>2021-06-06 22:53:16 +0200
commit6e2405b086ddba4d04646df25491b36a6eea13c3 (patch)
treec715a8a61a703db47a08685e3a7fdd1d5765fd90 /rand/randmt.c
parent4efbb58f64cfc98d4cb3977795781e2175e8803f (diff)
downloadgmp-6e2405b086ddba4d04646df25491b36a6eea13c3.tar.gz
Consistently use pointers instead of arrays in declarations.
gmp_randstate_t -> gmp_randstate_ptr, etc
Diffstat (limited to 'rand/randmt.c')
-rw-r--r--rand/randmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rand/randmt.c b/rand/randmt.c
index a05e76a44..daf88944b 100644
--- a/rand/randmt.c
+++ b/rand/randmt.c
@@ -191,7 +191,7 @@ __gmp_mt_recalc_buffer (gmp_uint_least32_t mt[])
Note that Mersenne Twister is designed to produce outputs in
32-bit words. */
void
-__gmp_randget_mt (gmp_randstate_t rstate, mp_ptr dest, unsigned long int nbits)
+__gmp_randget_mt (gmp_randstate_ptr rstate, mp_ptr dest, unsigned long int nbits)
{
gmp_uint_least32_t y;
int rbits;
@@ -354,7 +354,7 @@ __gmp_randget_mt (gmp_randstate_t rstate, mp_ptr dest, unsigned long int nbits)
}
void
-__gmp_randclear_mt (gmp_randstate_t rstate)
+__gmp_randclear_mt (gmp_randstate_ptr rstate)
{
(*__gmp_free_func) ((void *) RNG_STATE (rstate),
ALLOC (rstate->_mp_seed) * GMP_LIMB_BYTES);