vrana Mon Dec 8 04:19:54 2003 EDT
Modified files:
/phpdoc/en/reference/math/functions mt-srand.xml srand.xml
Log:
Seed becomes optional in PHP 4.2.0
Index: phpdoc/en/reference/math/functions/mt-srand.xml
diff -u phpdoc/en/reference/math/functions/mt-srand.xml:1.5
phpdoc/en/reference/math/functions/mt-srand.xml:1.6
--- phpdoc/en/reference/math/functions/mt-srand.xml:1.5 Fri May 30 15:48:38 2003
+++ phpdoc/en/reference/math/functions/mt-srand.xml Mon Dec 8 04:19:54 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/math.xml, last change in rev 1.2 -->
<refentry id="function.mt-srand">
<refnamediv>
@@ -10,11 +10,13 @@
<title>Description</title>
<methodsynopsis>
<type>void</type><methodname>mt_srand</methodname>
- <methodparam><type>int</type><parameter>seed</parameter></methodparam>
+ <methodparam
choice="opt"><type>int</type><parameter>seed</parameter></methodparam>
</methodsynopsis>
<para>
Seeds the random number generator with
<parameter>seed</parameter>.
+ Since PHP 4.2.0, the <parameter>seed</parameter>
+ becomes optional and defaults to a random value if omitted.
<informalexample>
<programlisting role="php">
<![CDATA[
Index: phpdoc/en/reference/math/functions/srand.xml
diff -u phpdoc/en/reference/math/functions/srand.xml:1.5
phpdoc/en/reference/math/functions/srand.xml:1.6
--- phpdoc/en/reference/math/functions/srand.xml:1.5 Fri May 30 15:48:38 2003
+++ phpdoc/en/reference/math/functions/srand.xml Mon Dec 8 04:19:54 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/math.xml, last change in rev 1.2 -->
<refentry id="function.srand">
<refnamediv>
@@ -10,11 +10,13 @@
<title>Description</title>
<methodsynopsis>
<type>void</type><methodname>srand</methodname>
- <methodparam><type>int</type><parameter>seed</parameter></methodparam>
+ <methodparam
choice="opt"><type>int</type><parameter>seed</parameter></methodparam>
</methodsynopsis>
<para>
Seeds the random number generator with
<parameter>seed</parameter>.
+ Since PHP 4.2.0, the <parameter>seed</parameter>
+ becomes optional and defaults to a random value if omitted.
<informalexample>
<programlisting role="php">
<![CDATA[