#44107 [NEW]: mt_srand() - ChangeLog Since 5.2.1

From: Date: Wed, 13 Feb 2008 01:55:09 +0000
Subject: #44107 [NEW]: mt_srand() - ChangeLog Since 5.2.1
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-512@lists.php.net to get a copy of this message
From: kentaro at ranvis dot com Operating system: PHP version: Irrelevant PHP Bug Type: Translation problem Bug description: mt_srand() - ChangeLog Since 5.2.1 Description: ------------ The Japanese translation of mt_srand()'s "ChangeLog Since 5.2.1" is not correct. It seems to have confused seeds and values. Reproduce code: --------------- http://www.php.net/manual/ja/function.mt-srand.php The Mersenne Twister implementation in PHP now uses a new seeding algorithm by Richard Wagner. Identical seeds no longer produce the same sequence of values they did in previous versions. This behavior is not expected to change again, but it is considered unsafe to rely upon it nonetheless. Expected result: ---------------- PHP の Mersenne Twister 実装は、Richard Wagner による新たなシード生成アルゴリズムを使用するようになりました。 これまでのバージョンと同じシード値で同じ乱数列が生成されることはなくなりました。 この振る舞いが再び変わる見込みはありませんが、それに関わらずこの振る舞いに頼るのは安全ではありません。 Actual result: -------------- PHP の Mersenne Twister 実装は、Richard Wagner による新たなシード生成アルゴリズムを使用するようになりました。 これまでのバージョンのように、同じ値のシーケンスで同じシードが生成されることはなくなりました。 この振る舞いが今後変わることはないでしょうが、この振る舞いに頼ってしまってはいけません。 -- Edit bug report at http://bugs.php.net/?id=44107&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=44107&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44107&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44107&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44107&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44107&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44107&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44107&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44107&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44107&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44107&r=support Expected behavior: http://bugs.php.net/fix.php?id=44107&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44107&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44107&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44107&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=44107&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=44107&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44107&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44107&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44107&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44107&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44107&r=mysqlcfg

« previous php.doc.bugs (#512) next »