reference/gmp/functions/gmp-random-seed.xml
b412bbd26214f7281ac7dd858710e09952a275f2
...
...
@@ -37,18 +37,42 @@
37
37
<refsect1 role="returnvalues">
38
38
&reftitle.returnvalues;
39
39
<para>
40
-
&return.nullorfalse;
40
+
&return.void;
41
41
</para>
42
42
</refsect1>
43
43

44
44
<refsect1 role="errors"><!-- {{{ -->
45
45
&reftitle.errors;
46
46
<para>
47
-
Issues an <constant>E_WARNING</constant> and returns &false; if
48
-
<parameter>seed</parameter> is not valid.
47
+
Throws a <classname>ValueError</classname> if <parameter>seed</parameter>
48
+
is invalid.
49
49
</para>
50
50
</refsect1><!-- }}} -->
51
51

52
+
<refsect1 role="changelog">
53
+
&reftitle.changelog;
54
+
<informaltable>
55
+
<tgroup cols="2">
56
+
<thead>
57
+
<row>
58
+
<entry>&Version;</entry>
59
+
<entry>&Description;</entry>
60
+
</row>
61
+
</thead>
62
+
<tbody>
63
+
<row>
64
+
<entry>8.0.0</entry>
65
+
<entry>
66
+
If <parameter>seed</parameter> is invalid, <function>gmp_random_seed</function>
67
+
now throws a <classname>ValueError</classname>.
68
+
Previously it emitted an <constant>E_WARNING</constant> and returned &false;.
69
+
</entry>
70
+
</row>
71
+
</tbody>
72
+
</tgroup>
73
+
</informaltable>
74
+
</refsect1>
75
+

52
76
<refsect1 role="examples">
53
77
&reftitle.examples;
54
78
<para>
55
79