1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
--TEST-- Harden rand --SKIPIF-- <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> --INI-- sp.configuration_file={PWD}/config/config_rand_harden_disabled.ini --FILE-- <?php srand(0); echo rand(0,100)."\n"; srand(0); echo rand(0,100)."\n"; ?> --EXPECT-- 84 84