mirror of
https://github.com/macintoshplus/doc-en.git
synced 2026-03-24 17:02:07 +01:00
62 lines
2.0 KiB
XML
62 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<appendix xml:id="random.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
&reftitle.constants;
|
|
&extension.constants.core;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry xml:id="constant.mt-rand-mt19937">
|
|
<term>
|
|
<constant>MT_RAND_MT19937</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Indicates that the correct <link xlink:href="&url.random.mersenne-twister;">Mt19937</link> (Mersenne Twister)
|
|
implementation will be used by the algorithm, when creating a <classname>Random\Engine\Mt19937</classname> instance
|
|
using <function>Random\Engine\Mt19937::__construct</function> or seeding the global Mersenne Twister
|
|
with <function>mt_srand</function>.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.mt-rand-php">
|
|
<term>
|
|
<constant>MT_RAND_PHP</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Indicates that an incorrect Mersenne Twister implementation will be used by the algorithm, when
|
|
creating a <classname>Random\Engine\Mt19937</classname> instance using <function>Random\Engine\Mt19937::__construct</function>
|
|
or seeding the global Mersenne Twister with <function>mt_srand</function>.
|
|
</simpara>
|
|
<simpara>
|
|
The incorrect implementation is available for backwards compatibility with
|
|
<function>mt_srand</function> prior to PHP 7.1.0.
|
|
</simpara>
|
|
&warn.deprecated.feature-8-3-0;
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</appendix>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|