svn: /phpdoc/en/trunk/reference/ misc/functions/uniqid.xml strings/functions/str-shuffle.xml

From: Date: Sun, 10 Jul 2016 12:25:24 +0000
Subject: svn: /phpdoc/en/trunk/reference/ misc/functions/uniqid.xml strings/functions/str-shuffle.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-14310@lists.php.net to get a copy of this message
cmb Sun, 10 Jul 2016 12:25:24 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=339624 Log: Add respectively replace &caution.cryptographically-insecure; Changed paths: U phpdoc/en/trunk/reference/misc/functions/uniqid.xml U phpdoc/en/trunk/reference/strings/functions/str-shuffle.xml Modified: phpdoc/en/trunk/reference/misc/functions/uniqid.xml =================================================================== --- phpdoc/en/trunk/reference/misc/functions/uniqid.xml 2016-07-10 12:14:00 UTC (rev 339623) +++ phpdoc/en/trunk/reference/misc/functions/uniqid.xml 2016-07-10 12:25:24 UTC (rev 339624) @@ -17,15 +17,7 @@ Gets a prefixed unique identifier based on the current time in microseconds. </para> - <warning> - <para> - This function does not create random nor unpredictable strings. - <emphasis>This function must not be used for security purposes.</emphasis> - Use a cryptographically secure random function/generator and - cryptographically secure hash functions to create unpredictable - secure IDs. - </para> - </warning> + &caution.cryptographically-insecure; </refsect1> <refsect1 role="parameters"> @@ -102,15 +94,6 @@ <refsect1 role="notes"> &reftitle.notes; - <caution> - <para> - This function does not generate cryptographically secure tokens, - in fact without being passed any additional parameters the return - value is little different from <function>microtime</function>. If - you need to generate cryptographically secure tokens use - <function>openssl_random_pseudo_bytes</function>. - </para> - </caution> <note> <para> Under Cygwin, the <parameter>more_entropy</parameter> must be set Modified: phpdoc/en/trunk/reference/strings/functions/str-shuffle.xml =================================================================== --- phpdoc/en/trunk/reference/strings/functions/str-shuffle.xml 2016-07-10 12:14:00 UTC (rev 339623) +++ phpdoc/en/trunk/reference/strings/functions/str-shuffle.xml 2016-07-10 12:25:24 UTC (rev 339624) @@ -16,6 +16,7 @@ <function>str_shuffle</function> shuffles a string. One permutation of all possible is created. </simpara> + &caution.cryptographically-insecure; </refsect1> <refsect1 role="parameters">

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