PRNG changed to MersenneTwister