From: Andrea Faulds Date: Thu, 18 Feb 2016 22:35:44 +0000 (+0000) Subject: Test that mt_rand() consistently produces the wrong results X-Git-Tag: php-7.0.5RC1~89 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a50c31da1917bb07b3c11f229125ab8d1f0b9b70;p=php Test that mt_rand() consistently produces the wrong results See 6f6bd8ce531636134efd5f669a4e8373fb2e9e51 and its revert, a0724d30817600540946b41e40f4cfc2a0c30f80. --- diff --git a/ext/standard/tests/math/mt_rand_value.phpt b/ext/standard/tests/math/mt_rand_value.phpt new file mode 100644 index 0000000000..772305ad63 --- /dev/null +++ b/ext/standard/tests/math/mt_rand_value.phpt @@ -0,0 +1,44 @@ +--TEST-- +Test mt_rand() output +--FILE-- + +--EXPECTF-- +1614640687 +1711027313 +857485497 +688176834 +1386682158 +412773096 +813703253 +898651287 +2087374214 +1382556330 +1640700129 +1863374167 +1324097651 +1923803667 +676334965 +853386222 + +1571178311