cvs: phpdoc /en/reference/misc/functions uniqid.xml
| From: | Joey Smith | Date: | Mon, 04 May 2009 06:10:00 +0000 |
| Subject: | cvs: phpdoc /en/reference/misc/functions uniqid.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-3950@lists.php.net to get a copy of this message | ||
joey Mon May 4 06:10:00 2009 UTC
Modified files:
/phpdoc/en/reference/misc/functions uniqid.xml
Log:
Have example in docs us mt_rand() instead of rand()
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/misc/functions/uniqid.xml?r1=1.13&r2=1.14&diff_format=u
Index: phpdoc/en/reference/misc/functions/uniqid.xml
diff -u phpdoc/en/reference/misc/functions/uniqid.xml:1.13
phpdoc/en/reference/misc/functions/uniqid.xml:1.14
--- phpdoc/en/reference/misc/functions/uniqid.xml:1.13 Fri Jan 16 16:14:25 2009
+++ phpdoc/en/reference/misc/functions/uniqid.xml Mon May 4 06:10:00 2009
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.13 $ -->
+<!-- $Revision: 1.14 $ -->
<refentry xml:id="function.uniqid" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>uniqid</refname>
@@ -79,7 +79,7 @@
$token = md5(uniqid());
// better, difficult to guess
-$better_token = md5(uniqid(rand(), true));
+$better_token = md5(uniqid(mt_rand(), true));
?>
]]>
</programlisting>