#28361 [NEW]: srand necessary for MCRYPT_RAND from PHP 4.2.0+?
| From: | php-contrib at i-ps dot net | Date: | Tue, 11 May 2004 15:32:27 +0000 |
| Subject: | #28361 [NEW]: srand necessary for MCRYPT_RAND from PHP 4.2.0+? | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969360618@lists.php.net to get a copy of this message | ||
From: php-contrib at i-ps dot net
Operating system: All
PHP version: 4.3.6
PHP Bug Type: Documentation problem
Bug description: srand necessary for MCRYPT_RAND from PHP 4.2.0+?
Description:
------------
It is stated in the documentation that you no longer need to seed the
random generator from PHP 4.2.0 onwards.
In mcrypt_create_iv it states that you must call srand() before using
MCRYPT_RAND. Is this necessary with versions 4.2.0 onwards?
If it is, then it is not clear in the documentation that this is in
exception of the above statement.
--
Edit bug report at http://bugs.php.net/?id=28361&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28361&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28361&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28361&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28361&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28361&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28361&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28361&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28361&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28361&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28361&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28361&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28361&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28361&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28361&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28361&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28361&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28361&r=float