#32145 [NEW]: Mersenne Twister seed option required
| From: | hardeman at nmni dot net | Date: | Tue, 01 Mar 2005 09:25:14 +0000 |
| Subject: | #32145 [NEW]: Mersenne Twister seed option required | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-74736@lists.php.net to get a copy of this message | ||
From: hardeman at nmni dot net
Operating system: win
PHP version: 4.3.10
PHP Bug Type: Feature/Change Request
Bug description: Mersenne Twister seed option required
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 bug report at http://bugs.php.net/?id=32145&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32145&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32145&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32145&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32145&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32145&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32145&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32145&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32145&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32145&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32145&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32145&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32145&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32145&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32145&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32145&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32145&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32145&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32145&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32145&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32145&r=mysqlcfg