cvs: phpdoc-fr /reference/math/functions mt-srand.xml srand.xml
| From: | Mehdi Achour | Date: | Tue, 09 Dec 2003 09:02:09 +0000 |
| Subject: | cvs: phpdoc-fr /reference/math/functions mt-srand.xml srand.xml | ||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-1005@lists.php.net to get a copy of this message | ||
didou Tue Dec 9 04:02:09 2003 EDT
Modified files:
/phpdoc-fr/reference/math/functions mt-srand.xml srand.xml
Log:
Seed becomes optional in PHP 4.2.0
Index: phpdoc-fr/reference/math/functions/mt-srand.xml
diff -u phpdoc-fr/reference/math/functions/mt-srand.xml:1.2
phpdoc-fr/reference/math/functions/mt-srand.xml:1.3
--- phpdoc-fr/reference/math/functions/mt-srand.xml:1.2 Sun Jun 29 11:10:23 2003
+++ phpdoc-fr/reference/math/functions/mt-srand.xml Tue Dec 9 04:02:09 2003
@@ -10,11 +10,14 @@
<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>
<function>mt_srand</function> initialise une meilleure valeur
aléatoire avec <parameter>seed</parameter>.
+ Depuis PHP 4.2.0, le paramètre <parameter>seed</parameter> est
+ devenu optionnel et est généré par PHP si il
+ n'est pas renseigné.
<example>
<title>Exemple avec <function>mt_srand</function></title>
<programlisting role="php">
Index: phpdoc-fr/reference/math/functions/srand.xml
diff -u phpdoc-fr/reference/math/functions/srand.xml:1.2
phpdoc-fr/reference/math/functions/srand.xml:1.3
--- phpdoc-fr/reference/math/functions/srand.xml:1.2 Sun Jun 29 11:10:24 2003
+++ phpdoc-fr/reference/math/functions/srand.xml Tue Dec 9 04:02:09 2003
@@ -10,11 +10,14 @@
<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>
<function>srand</function> initialise le générateur de
nombres aléatoires avec <parameter>seed</parameter>.
+ Depuis PHP 4.2.0, le paramètre <parameter>seed</parameter> est
+ devenu optionnel et est généré par PHP si il n'est
+ pas renseigné.
<example>
<title>Exemple avec <function>srand</function></title>
<programlisting role="php">