svn: /phpdoc/en/trunk/reference/mcrypt/functions/ mcrypt-create-iv.xml

From: Date: Tue, 29 Dec 2009 09:43:03 +0000
Subject: svn: /phpdoc/en/trunk/reference/mcrypt/functions/ mcrypt-create-iv.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-5725@lists.php.net to get a copy of this message
degeberg Tue, 29 Dec 2009 09:43:03 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=292735 Log: Fixed #50437. Bug: http://bugs.php.net/50437 (Open) Errors in the documentation for mcrypt_create_iv() Changed paths: U phpdoc/en/trunk/reference/mcrypt/functions/mcrypt-create-iv.xml Modified: phpdoc/en/trunk/reference/mcrypt/functions/mcrypt-create-iv.xml =================================================================== --- phpdoc/en/trunk/reference/mcrypt/functions/mcrypt-create-iv.xml 2009-12-29 09:42:00 UTC (rev 292734) +++ phpdoc/en/trunk/reference/mcrypt/functions/mcrypt-create-iv.xml 2009-12-29 09:43:03 UTC (rev 292735) @@ -45,20 +45,9 @@ number generator), <constant>MCRYPT_DEV_RANDOM</constant> (read data from <filename>/dev/random</filename>) and <constant>MCRYPT_DEV_URANDOM</constant> (read data from - <filename>/dev/urandom</filename>). <constant>MCRYPT_RAND</constant> - is the only one supported on Windows because Windows (of course) - doesn't have <filename>/dev/random</filename> or - <filename>/dev/urandom</filename>. + <filename>/dev/urandom</filename>). Prior to 5.3.0, + <constant>MCRYPT_RAND</constant> was the only one supported on Windows. </para> - <note> - <para> - When using <constant>MCRYPT_RAND</constant>, remember to call - <function>srand</function> before - <function>mcrypt_create_iv</function> to initialize the random - number generator; it is not seeded automatically like - <function>rand</function> is. - </para> - </note> </listitem> </varlistentry> </variablelist> @@ -71,6 +60,38 @@ Returns the initialization vector, or &false; on error. </para> </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + <constant>MCRYPT_RANDOM</constant> and <constant>MCRYPT_URANDOM</constant> + became available on Windows platforms. + </entry> + </row> + <row> + <entry>5.3.0</entry> + <entry> + It is no longer required to call <function>srand</function> first. This + is now done automatically. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> <refsect1 role="examples"> &reftitle.examples;

« previous php.doc.cvs (#5725) next »