ID:               32145
 User updated by:  hardeman at nmni dot net
 Reported By:      hardeman at nmni dot net
 Status:           Open
 Bug Type:         Feature/Change Request
 Operating System: All OS
 PHP Version:      All versions
 New Comment:

As a temporary solution, I have now created a PHP class which
implements the Mersenne Twister PRNG with the updated options. I can
make this class available to other PHP users - just send me a mail.

Hendrik Hardeman


Previous Comments:
------------------------------------------------------------------------

[2005-03-04 15:29:22] hardeman at nmni dot net

As a temporary solution, I have now created a PHP class which
implements the Mersenne Twister PRNG with the updated options. I can
make this class available to other PHP users - just send me a mail.

Hendrik Hardeman

------------------------------------------------------------------------

[2005-03-01 10:25:13] hardeman at nmni dot net

Description:
------------
Unless the PHP documentation is not up-to-date, the only seed option
for the Mersenne Twister RNG is a 32-bit integer. The original
(updated) MT implementation (see
http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/emt19937ar.html),
however, allows for seed arrays of arbitrary length to better exploit
the large period of the RNG. It would be nice if this option were built
in in future versions of PHP so that I myself and probably quite a few
other PHP users won't have to implement the RNG in PHP code itself or
create a private extension in C++. Adding this feature to PHP should
not require a lot of effort as other implementations are readily
available.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=32145&edit=1

Reply via email to