|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull Requests
Pull requests: HistoryAllCommentsChangesGit/SVN commits              [2016-02-17 03:35 UTC] laruence@php.net
  [2016-02-17 03:35 UTC] laruence@php.net
 
-Status: Open
+Status: Closed
  [2016-02-17 03:35 UTC] laruence@php.net
  [2016-02-18 11:13 UTC] leigh@php.net
  [2016-02-18 11:26 UTC] leigh@php.net
  [2016-02-18 18:21 UTC] ab@php.net
 
-Status: Closed
+Status: Re-Opened
  [2016-02-18 18:21 UTC] ab@php.net
  [2016-04-18 09:30 UTC] bwoebi@php.net
  [2016-04-18 09:30 UTC] bwoebi@php.net
 
-Status: Re-Opened
+Status: Closed
  [2016-07-20 11:33 UTC] davey@php.net
  [2016-07-20 11:33 UTC] davey@php.net
  [2016-07-20 11:34 UTC] davey@php.net
 | |||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 12:00:01 2025 UTC | 
Description: ------------ mt_rand() returns the different values from original mt19937ar.c. Although mt_rand() is required to be generate random numbers, I am concerned about that this difference implies possibly deterioration of randomness quality. Test script: --------------- <?php mt_srand(12345678); for ($i=0; $i<10; $i++) echo mt_rand().PHP_EOL; Expected result: ---------------- 527860569 1711027313 1280820687 688176834 770499160 412773096 813703253 898651287 52508912 757323740 Actual result: -------------- 1614640687 1711027313 857485497 688176834 1386682158 412773096 813703253 898651287 2087374214 1382556330