Change GMPs default PRNG to Mersenne Twister

Since we don't allow users to seed the RNG, there is no BC issue with changing the generator.
This commit is contained in:
Leigh 2014-09-23 19:51:56 +01:00
parent 1765548bce
commit 3d6d863ccb

View File

@ -1799,7 +1799,7 @@ ZEND_FUNCTION(gmp_random)
if (!GMPG(rand_initialized)) {
/* Initialize */
gmp_randinit_lc_2exp_size(GMPG(rand_state), 32L);
gmp_randinit_mt(GMPG(rand_state));
/* Seed */
gmp_randseed_ui(GMPG(rand_state), GENERATE_SEED());