#28361 [Opn->Csd]: srand necessary for MCRYPT_RAND from PHP 4.2.0+?

From: Date: Thu, 05 Aug 2004 08:54:23 +0000
Subject: #28361 [Opn->Csd]: srand necessary for MCRYPT_RAND from PHP 4.2.0+?
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969362694@lists.php.net to get a copy of this message
ID: 28361 Updated by: dave@php.net Reported By: php-contrib at i-ps dot net -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: All PHP Version: 4.3.6 New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Yes it is necessary with 4.2.0 onwards. Previous Comments: ------------------------------------------------------------------------ [2004-05-11 17:32:26] php-contrib at i-ps dot net 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 this bug report at http://bugs.php.net/?id=28361&edit=1

« previous php.doc (#969362694) next »