🕸Fergus Duniho wrote on Thu, Aug 30, 2018 02:57 PM UTC:
That's now fixed. In PHP 7.1, mt_rand() was "updated to use the fixed, correct, version of the Mersenne Twister algorithm." This meant that it would generate different random numbers from the same seed, and the effect this had on CWDA was that it chose different armies for the players. For the sake of backwards compatibility, mt_srand(), which sets the seed, now allows the MT_RAND_PHP flag, which signals mt_rand() to use the old, incorrect algorithm. Using that, I reverted it back to the old algorithm, which will generate the same results that the seed used for the game previously got.
That's now fixed. In PHP 7.1, mt_rand() was "updated to use the fixed, correct, version of the Mersenne Twister algorithm." This meant that it would generate different random numbers from the same seed, and the effect this had on CWDA was that it chose different armies for the players. For the sake of backwards compatibility, mt_srand(), which sets the seed, now allows the
MT_RAND_PHP
flag, which signals mt_rand() to use the old, incorrect algorithm. Using that, I reverted it back to the old algorithm, which will generate the same results that the seed used for the game previously got.