diff -r 2ab28c0b9c4a rand/randmt.c
--- a/rand/randmt.c	Sun Feb 12 21:56:48 2017 +0100
+++ b/rand/randmt.c	Wed Feb 15 05:56:34 2017 +0100
@@ -377,7 +377,7 @@
   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);
