--TEST-- Random: Randomizer: Serialization of the Randomizer must preserve the sequence --FILE-- getInt(0, $i); } $randomizer2 = unserialize(serialize($randomizer)); for ($i = 0; $i < $iterations; $i++) { if ($randomizer->getInt(0, $i) !== $randomizer2->getInt(0, $i)) { $className = $engine::class; die("failure: state differs at {$i}"); } } } die('success'); ?> --EXPECTF-- Deprecated: Constant MT_RAND_PHP is deprecated in %s on line %d Deprecated: The MT_RAND_PHP variant of Mt19937 is deprecated in %s on line %d Random\Engine\Mt19937 Random\Engine\Mt19937 Random\Engine\PcgOneseq128XslRr64 Random\Engine\Xoshiro256StarStar Random\Engine\Test\TestShaEngine success