#32145 [Opn]: Mersenne Twister seed option required
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 initialization
methods. I can make this class available to other PHP users - just send
me a mail.
Hendrik Hardeman
Previous Comments:
------------------------------------------------------------------------
[2005-03-04 15:32:27] 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 initialization
methods. I can make this class available to other PHP users - just send
me a mail.
Hendrik Hardeman
------------------------------------------------------------------------
[2005-03-04 15:29:53] 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-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
Thread (7 messages)