[DOC-CVS] [doc-en] master: Update srand.xml Fix incorrect description (#4871)
[email protected] (Mikhail Alferov via GitHub)
| Newsgroups | php.doc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Mikhail Alferov (mmalferov)
Committer: GitHub (web-flow)
Pusher: TimWolla
Date: 2025-09-10T11:27:09+02:00
Commit: https://github.com/php/doc-en/commit/37cf0c5a0c66e94e4184e81d7dccc8eed001b66f
Raw diff: https://github.com/php/doc-en/commit/37cf0c5a0c66e94e4184e81d7dccc8eed001b66f.diff
Update srand.xml Fix incorrect description (#4871)
* Update srand.xml Fix incorrect description
`srand(0)` uses `0` as seed, random seeding only occurs when seed is `null` or omitted.
* Update srand.xml Sync the description with mt_srand()
Changed paths:
M reference/random/functions/srand.xml
Diff:
diff --git a/reference/random/functions/srand.xml b/reference/random/functions/srand.xml
index fe088e909c53..a39892428c43 100644
--- a/reference/random/functions/srand.xml
+++ b/reference/random/functions/srand.xml
@@ -13,8 +13,9 @@
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer><constant>MT_RAND_MT19937</constant></initializer></methodparam>
</methodsynopsis>
<para>
- Seeds the random number generator with <parameter>seed</parameter>
- or with a random value if <parameter>seed</parameter> is <literal>0</literal>.
+ Seeds the random number generator with
+ <parameter>seed</parameter> or with a random value
+ if no <parameter>seed</parameter> is given.
</para>
¬e.randomseed;