sander Sun May 12 09:18:55 2002 EDT
Modified files:
/phpdoc/en/reference/math/functions mt-rand.xml mt-srand.xml
rand.xml srand.xml
Log:
Added notes that seeding is no longer necessary since 4.2.0
Index: phpdoc/en/reference/math/functions/mt-rand.xml
diff -u phpdoc/en/reference/math/functions/mt-rand.xml:1.2
phpdoc/en/reference/math/functions/mt-rand.xml:1.3
--- phpdoc/en/reference/math/functions/mt-rand.xml:1.2 Wed Apr 17 02:39:54 2002
+++ phpdoc/en/reference/math/functions/mt-rand.xml Sun May 12 09:18:54 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/math.xml, last change in rev 1.2 -->
<refentry id="function.mt-rand">
<refnamediv>
@@ -38,8 +38,9 @@
(5, 15)</literal>.
</simpara>
<simpara>
- Remember to seed the random number generator before use with
- <function>mt_srand</function>.
+ In older versions of PHP, you had to seed the random number generator
+ before use with <function>mt_srand</function>. Since 4.2.0 this is no
+ longer necessary.
</simpara>
<note>
<para>
Index: phpdoc/en/reference/math/functions/mt-srand.xml
diff -u phpdoc/en/reference/math/functions/mt-srand.xml:1.2
phpdoc/en/reference/math/functions/mt-srand.xml:1.3
--- phpdoc/en/reference/math/functions/mt-srand.xml:1.2 Wed Apr 17 02:39:54 2002
+++ phpdoc/en/reference/math/functions/mt-srand.xml Sun May 12 09:18:54 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/math.xml, last change in rev 1.2 -->
<refentry id="function.mt-srand">
<refnamediv>
@@ -29,6 +29,12 @@
</programlisting>
</informalexample>
</para>
+ <note>
+ <para>
+ Since PHP 4.2.0 it's no longer necessary to seed the random number
+ generator before using it.
+ </para>
+ </note>
<simpara>
See also <function>mt_rand</function>,
<function>mt_getrandmax</function>, <function>srand</function>,
Index: phpdoc/en/reference/math/functions/rand.xml
diff -u phpdoc/en/reference/math/functions/rand.xml:1.2
phpdoc/en/reference/math/functions/rand.xml:1.3
--- phpdoc/en/reference/math/functions/rand.xml:1.2 Wed Apr 17 02:39:54 2002
+++ phpdoc/en/reference/math/functions/rand.xml Sun May 12 09:18:54 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/math.xml, last change in rev 1.2 -->
<refentry id="function.rand">
<refnamediv>
@@ -22,8 +22,9 @@
15)</literal>.
</simpara>
<simpara>
- Remember to seed the random number generator before use with
- <function>srand</function>.
+ In older versions of PHP, you had to seed the random number generator
+ before use with <function>mt_srand</function>. Since 4.2.0 this is no
+ longer necessary.
</simpara>
<note>
<para>
Index: phpdoc/en/reference/math/functions/srand.xml
diff -u phpdoc/en/reference/math/functions/srand.xml:1.2
phpdoc/en/reference/math/functions/srand.xml:1.3
--- phpdoc/en/reference/math/functions/srand.xml:1.2 Wed Apr 17 02:39:55 2002
+++ phpdoc/en/reference/math/functions/srand.xml Sun May 12 09:18:54 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/math.xml, last change in rev 1.2 -->
<refentry id="function.srand">
<refnamediv>
@@ -29,6 +29,12 @@
</programlisting>
</informalexample>
</para>
+ <note>
+ <para>
+ Since PHP 4.2.0 it's no longer necessary to seed the random number
+ generator before using it.
+ </para>
+ </note>
<simpara>
See also <function>rand</function>,
<function>getrandmax</function>, <function>mt_rand</function>,