diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | rand/randmt.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2017-02-16 Pedro Gimeno <pggimeno@wanadoo.es> + + * rand/randmt.c (__gmp_randiset_mt): Set generator functions from + source. + 2017-02-16 Torbjörn Granlund <tg@gmplib.org> * mpn/arm64/aorsorrlshC_n.asm: New file. diff --git a/rand/randmt.c b/rand/randmt.c index f42e8edc9..a05e76a44 100644 --- a/rand/randmt.c +++ b/rand/randmt.c @@ -377,7 +377,7 @@ __gmp_randiset_mt (gmp_randstate_ptr dst, gmp_randstate_srcptr src) mp_size_t i; /* Set the generator functions. */ - RNG_FNPTR (dst) = (void *) &Mersenne_Twister_Generator_Noseed; + RNG_FNPTR (dst) = RNG_FNPTR(src); /* Allocate the MT-specific state. */ dstp = (gmp_rand_mt_struct *) __GMP_ALLOCATE_FUNC_LIMBS (sz); |