svn: /phpdoc/ja/trunk/reference/csprng/ functions/random-bytes.xml functions/random-int.xml
| From: | Yoshinari Takaoka | Date: | Wed, 08 Jan 2020 04:42:07 +0000 |
| Subject: | svn: /phpdoc/ja/trunk/reference/csprng/ functions/random-bytes.xml functions/random-int.xml | ||
| Groups: | php.doc.ja | ||
| Request: | Send a blank email to doc-ja+get-5335@lists.php.net to get a copy of this message | ||
mumumu Wed, 08 Jan 2020 04:42:07 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=348837
Log:
added mt_rand alternative functions translations.
Changed paths:
A phpdoc/ja/trunk/reference/csprng/functions/
A phpdoc/ja/trunk/reference/csprng/functions/random-bytes.xml
A phpdoc/ja/trunk/reference/csprng/functions/random-int.xml
Added: phpdoc/ja/trunk/reference/csprng/functions/random-bytes.xml
===================================================================
--- phpdoc/ja/trunk/reference/csprng/functions/random-bytes.xml (rev 0)
+++ phpdoc/ja/trunk/reference/csprng/functions/random-bytes.xml 2020-01-08 04:42:07 UTC (rev 348837)
@@ -0,0 +1,110 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+<!-- EN-Revision: 338615 Maintainer: mumumu Status: ready -->
+
+<refentry xml:id="function.random-bytes" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
+ <refnamediv>
+ <refname>random_bytes</refname>
+
<refpurpose>暗号論的に安全な、疑似的にランダムなバイト列を生成する</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description"><!-- {{{ -->
+ &reftitle.description;
+ <methodsynopsis role="procedural">
+ <type>string</type><methodname>random_bytes</methodname>
+
<methodparam><type>int</type><parameter>length</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+ ソルトやキーや初期化ベクトルのような、暗号化の用途に合った、
+
暗号論的にランダムなバイト列を任意の長さの文字列として生成します。
+ </para>
+ &csprng.sources;
+ &csprng.function.backport;
+ </refsect1><!-- }}} -->
+
+ <refsect1 role="parameters"><!-- {{{ -->
+ &reftitle.parameters;
+ <variablelist>
+ <varlistentry>
+ <term><parameter>length</parameter></term>
+ <listitem>
+ <para>
+ 返すべきランダムな文字列の長さをバイト単位で指定します。
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1><!-- }}} -->
+
+ <refsect1 role="returnvalues"><!-- {{{ -->
+ &reftitle.returnvalues;
+ <para>
+ 暗号論的に安全なランダムなバイト列を含んだ文字列を返します。
+ </para>
+ </refsect1><!-- }}} -->
+
+ <refsect1 role="errors"><!-- {{{ -->
+ &reftitle.errors;
+ <itemizedlist>
+ &csprng.errors;
+ <listitem>
+ <simpara>
+ 不正な <parameter>length</parameter> が指定されると、
+ <classname>Error</classname> がスローされます。
+ </simpara>
+ </listitem>
+ </itemizedlist>
+ </refsect1><!-- }}} -->
+
+ <refsect1 role="examples"><!-- {{{ -->
+ &reftitle.examples;
+ <example xml:id="random-bytes.example.basic"><!-- {{{ -->
+ <title><function>random_bytes</function> の例</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$bytes = random_bytes(5);
+var_dump(bin2hex($bytes));
+?>
+]]>
+ </programlisting>
+ &example.outputs.similar;
+ <screen>
+<![CDATA[
+string(10) "385e33f741"
+]]>
+ </screen>
+ </example><!-- }}} -->
+ </refsect1><!-- }}} -->
+
+ <refsect1 role="seealso"><!-- {{{ -->
+ &reftitle.seealso;
+ <simplelist>
+ <member><function>random_int</function></member>
+ <member><function>openssl_random_pseudo_bytes</function></member>
+ <member><function>bin2hex</function></member>
+ </simplelist>
+ </refsect1><!-- }}} -->
+
+</refentry>
+
+<!-- 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
+-->
Property changes on: phpdoc/ja/trunk/reference/csprng/functions/random-bytes.xml
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL
\ No newline at end of property
Added: phpdoc/ja/trunk/reference/csprng/functions/random-int.xml
===================================================================
--- phpdoc/ja/trunk/reference/csprng/functions/random-int.xml (rev 0)
+++ phpdoc/ja/trunk/reference/csprng/functions/random-int.xml 2020-01-08 04:42:07 UTC (rev 348837)
@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+<!-- EN-Revision: 338615 Maintainer: mumumu Status: ready -->
+
+<refentry xml:id="function.random-int" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
+ <refnamediv>
+ <refname>random_int</refname>
+ <refpurpose>暗号論的に安全な疑似乱数を生成する</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description"><!-- {{{ -->
+ &reftitle.description;
+ <methodsynopsis role="procedural">
+ <type>int</type><methodname>random_int</methodname>
+
<methodparam><type>int</type><parameter>min</parameter></methodparam>
+
<methodparam><type>int</type><parameter>max</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+ ポーカーゲームやカードデッキのシャッフルのような、
+ 偏りがない結果が重要になる用途に合う、
+ 暗号学的にランダムな整数を生成します。
+ </para>
+ &csprng.sources;
+ &csprng.function.backport;
+ </refsect1><!-- }}} -->
+
+ <refsect1 role="parameters"><!-- {{{ -->
+ &reftitle.parameters;
+ <variablelist>
+ <varlistentry>
+ <term><parameter>min</parameter></term>
+ <listitem>
+ <para>
+ 返される最小値。
+ この値は、<constant>PHP_INT_MIN</constant>
以上でなければなりません。
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>max</parameter></term>
+ <listitem>
+ <para>
+ 返される最大値。
+ この値は、<constant>PHP_INT_MAX</constant>
以下でなければなりません。
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1><!-- }}} -->
+
+ <refsect1 role="returnvalues"><!-- {{{ -->
+ &reftitle.returnvalues;
+ <para>
+ <parameter>min</parameter> と <parameter>max</parameter>
の範囲で、
+ 暗号学的に安全なランダムな整数値を返します (min と max を含みます)
+ </para>
+ </refsect1><!-- }}} -->
+
+ <refsect1 role="errors"><!-- {{{ -->
+ &reftitle.errors;
+ <itemizedlist>
+ &csprng.errors;
+ <listitem>
+ <simpara>
+ <parameter>max</parameter> が <parameter>min</parameter>
より小さい場合、
+ <classname>Error</classname> がスローされます。
+ </simpara>
+ </listitem>
+ </itemizedlist>
+ </refsect1><!-- }}} -->
+
+ <refsect1 role="examples"><!-- {{{ -->
+ &reftitle.examples;
+ <example xml:id="random-int.example.basic"><!-- {{{ -->
+ <title><function>random_int</function> の例</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+var_dump(random_int(100, 999));
+var_dump(random_int(-1000, 0));
+?>
+]]>
+ </programlisting>
+ &example.outputs.similar;
+ <screen>
+<![CDATA[
+int(248)
+int(-898)
+]]>
+ </screen>
+ </example><!-- }}} -->
+ </refsect1><!-- }}} -->
+
+ <refsect1 role="seealso"><!-- {{{ -->
+ &reftitle.seealso;
+ <simplelist>
+ <member><function>random_bytes</function></member>
+ </simplelist>
+ </refsect1><!-- }}} -->
+
+</refentry>
+
+<!-- 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
+-->
Property changes on: phpdoc/ja/trunk/reference/csprng/functions/random-int.xml
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL
\ No newline at end of property