getrandmax returns 2^15 - 1, not 2 ^ 15 on Windows (and maybe others).

Fix bug #55446

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@315138 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Richard Quadling 2011-08-18 12:56:59 +00:00
parent 78b7784f6d
commit 5a4fe9cb9a

View file

@ -27,7 +27,7 @@
<note>
<simpara>
On some platforms (such as Windows), <function>getrandmax</function>
is only 32768. If you require a range larger than 32768, specifying
is only 32767. If you require a range larger than 32767, specifying
<parameter>min</parameter> and <parameter>max</parameter> will allow
you to create a range larger than this, or consider using
<function>mt_rand</function> instead.