1
0
mirror of https://github.com/php/doc-ru.git synced 2026-03-24 07:42:22 +01:00
Files
archived-doc-ru/reference/random/constants.xml
2023-10-25 19:19:36 +03:00

64 lines
2.5 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: c4f24e2eef1a3c970c491c0ee8cbc1f290ff023a Maintainer: sergey Status: ready -->
<!-- Reviewed: no -->
<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>
Указывает, что правильная реализация <link xlink:href="&url.random.mersenne-twister;">Mt19937</link> (Mersenne Twister)
будет использоваться алгоритмом при создании экземпляра <classname>Random\Engine\Mt19937</classname>
с помощью метода <function>Random\Engine\Mt19937::__construct</function> или при загрузке глобального Mersenne Twister
с помощью функции <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>
Указывает, что при создании экземпляра <classname>Random\Engine\Mt19937</classname>
с помощью метода <function>Random\Engine\Mt19937::__construct</function> или при загрузке глобального
Mersenne Twister с помощью функции <function>mt_srand</function> алгоритм будет использовать
некорректную реализацию Mersenne Twister.
</simpara>
<simpara>
Некорректная реализация доступна для обратной совместимости с помощью функции <function>mt_srand</function> до версии 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
-->