mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
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:
parent
3f96b7aaf7
commit
12b92ba1e3
1 changed files with 3 additions and 19 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue