[Gmp-commit] /var/hg/gmp: (__gmp_randiset_mt): Set generator functions from s...

mercurial at gmplib.org mercurial at gmplib.org
Thu Feb 16 22:39:22 UTC 2017


details:   /var/hg/gmp/rev/39b4da3d92ea
changeset: 17281:39b4da3d92ea
user:      Pedro Gimeno  <pggimeno at wanadoo.es>
date:      Thu Feb 16 23:39:20 2017 +0100
description:
(__gmp_randiset_mt): Set generator functions from source.

diffstat:

 ChangeLog     |  5 +++++
 rand/randmt.c |  2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 6c3d56354689 -r 39b4da3d92ea ChangeLog
--- a/ChangeLog	Thu Feb 16 23:36:58 2017 +0100
+++ b/ChangeLog	Thu Feb 16 23:39:20 2017 +0100
@@ -1,3 +1,8 @@
+2017-02-16  Pedro Gimeno  <pggimeno at wanadoo.es>
+
+	* rand/randmt.c (__gmp_randiset_mt): Set generator functions from
+	source.
+
 2017-02-16  Torbjörn Granlund  <tg at gmplib.org>
 
 	* mpn/arm64/aorsorrlshC_n.asm: New file.
diff -r 6c3d56354689 -r 39b4da3d92ea rand/randmt.c
--- a/rand/randmt.c	Thu Feb 16 23:36:58 2017 +0100
+++ b/rand/randmt.c	Thu Feb 16 23:39:20 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);


More information about the gmp-commit mailing list