svn: /phpdoc/en/trunk/reference/math/functions/ rand.xml
| From: | Richard Quadling | Date: | Thu, 18 Aug 2011 12:56:59 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/math/functions/ rand.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-8643@lists.php.net to get a copy of this message | ||
rquadling Thu, 18 Aug 2011 12:56:59 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=315138
Log:
getrandmax returns 2^15 - 1, not 2 ^ 15 on Windows (and maybe others).
Fix bug #55446
Bug: https://bugs.php.net/55446 (Open) getrandmax()
incorrectly defined on rand() page
Changed paths:
U phpdoc/en/trunk/reference/math/functions/rand.xml
Modified: phpdoc/en/trunk/reference/math/functions/rand.xml
===================================================================
--- phpdoc/en/trunk/reference/math/functions/rand.xml 2011-08-18 12:22:39 UTC (rev 315137)
+++ phpdoc/en/trunk/reference/math/functions/rand.xml 2011-08-18 12:56:59 UTC (rev 315138)
@@ -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.