Attempt to fix issue with gmp_randinit_set for _mt.
This commit is contained in:
parent
f0343c7c91
commit
f14f867eb6
2
randmt.c
2
randmt.c
@ -371,7 +371,7 @@ __gmp_randiset_mt (gmp_randstate_ptr dst, gmp_randstate_srcptr src)
|
||||
dstp = (*__gmp_allocate_func) (sizeof (gmp_rand_mt_struct));
|
||||
|
||||
RNG_STATE (dst) = (void *) dstp;
|
||||
RNG_FNPTR (dst) = (void *) &Mersenne_Twister_Generator_Noseed;
|
||||
RNG_FNPTR (dst) = RNG_FNPTR(src);
|
||||
|
||||
for (i = 0; i < N; i++)
|
||||
dstp->mt[i] = srcp->mt[i];
|
||||
|
Loading…
Reference in New Issue
Block a user