summaryrefslogtreecommitdiff
path: root/rand/randmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'rand/randmt.c')
-rw-r--r--rand/randmt.c2
1 files changed, 1 insertions, 1 deletions
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);