Trim down the migration guide CSPRNG section.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337872 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Adam Harvey 2015-09-21 12:17:17 +00:00
parent 3f96b7aaf7
commit 12b92ba1e3

View file

@ -644,25 +644,9 @@ session_start([
<title><link linkend="book.csprng">CSPRNG</link> Functions</title>
<para>
This feature introduces two new functions for generating cryptographically
secure integers and strings. They expose simple APIs and are
platform-independent.
</para>
<para>
Function Signatures:
</para>
<programlisting>
<![CDATA[
string random_bytes(int length);
int random_int(int min, int max);
]]>
</programlisting>
<para>
Both functions will emit an E_WARNING and return <literal>false</literal> if
a source of sufficient randomness cannot be found.
Two new functions have been added to generate cryptographically secure
integers and strings in a cross platform way:
<function>random_bytes</function> and <function>random_int</function>.
</para>
</sect2>