diff options
author | Pedro Gimeno <pggimeno@wanadoo.es> | 2017-02-16 23:39:20 +0100 |
---|---|---|
committer | Pedro Gimeno <pggimeno@wanadoo.es> | 2017-02-16 23:39:20 +0100 |
commit | 924bfaf1fdbb97b0a483adee644f6736e951414c (patch) | |
tree | 1175ad4818fa408af96168d404d2ec339840e777 /rand | |
parent | bc0b8f8f08de4b50f9ad5ba6e13f30cb38533116 (diff) | |
download | gmp-924bfaf1fdbb97b0a483adee644f6736e951414c.tar.gz |
(__gmp_randiset_mt): Set generator functions from source.
Diffstat (limited to 'rand')
-rw-r--r-- | rand/randmt.c | 2 |
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); |