Correct uniqid() description. It does not return unique ID always

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340020 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Yasuo Ohgaki 2016-09-13 02:28:52 +00:00
parent 33183abba5
commit e70ff36756

View file

@ -18,6 +18,16 @@
microseconds.
</para>
&caution.cryptographically-insecure;
<warning>
<para>
This function does not guarantee uniqueness of return
value. Since most systems adjust system clock by NTP or like,
system time is changed constantly. Therefore, it is possible that
this function does not return unique ID for the
process/thread. Use <parameter>more_entropy</parameter> to
increase likelihood of uniqueness.
</para>
</warning>
</refsect1>
<refsect1 role="parameters">
@ -57,8 +67,14 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns the unique identifier, as a string.
Returns timestamp based unique identifier as a string.
</para>
<warning>
<para>
This function tries to create unique identifier, but it does not
guarantee 100% uniqueness of return value.
</para>
</warning>
</refsect1>
<refsect1 role="examples">