fixes a MersenneTwister initialization bug