1
0
mirror of https://github.com/php/doc-ja.git synced 2026-04-26 09:28:10 +02:00
Commit Graph

31 Commits

Author SHA1 Message Date
Yoshinari Takaoka 4f1bc96a21 Update srand.xml Fix incorrect description
https://github.com/php/doc-en/commit/37cf0c5a0c66e94e4184e81d7dccc8eed001b66f
2025-09-11 18:54:02 +09:00
Takuya Aramaki 37275581b5 random関連のドキュメントの更新 (#298)
* mt_rand() はPHP 8.0以降ValueError をスローする (php/doc-en#4660)

* `getrandmax`が小さいのはPHP 7.1までであることを明示 (php/doc-en#4664)

* 誤字訂正

* Mt19937 の重複についての訳を改善

* 「重複したシードが存在します」→「シードが重複します」
2025-05-27 15:37:24 +09:00
Saki Takamachi f08d24c815 ext/randomの未翻訳部分を翻訳 (#275) 2025-03-30 23:53:58 +09:00
Haruki Tazoe 5df57fbf72 非推奨となったRandom関数のlcg_value()について (#160)
* session.sid_lengthとsession.sid_bits_per_characterの非推奨について追記

* 非推奨となったRandom関数のlcg_valueについて

* EN-Revisionの追記忘れ
2024-11-09 23:56:06 +09:00
Yoshinari Takaoka 6ff6998188 updated EN-Revision only 2024-01-14 18:17:23 +09:00
Yoshinari Takaoka 19de74c207 [PHP 8.3] Update mt-srand and srand functions
https://github.com/php/doc-en/commit/9eb92e5c1851d7838ba02e88e7a0e5bb5c86880a
2024-01-14 18:03:49 +09:00
Yoshinari Takaoka 8c93962aac [status ready] translated lcg-value new caution. 2023-10-22 19:34:50 +09:00
Yoshinari Takaoka 04de2296bc Interlink Randomizer::getFloat() and Randomizer::getInt()
https://github.com/php/doc-en/commit/0ec8e36e0f649354b20c714080a903d32df4dbfb
2023-10-22 18:39:45 +09:00
Yoshinari Takaoka ada7026f42 lcg_value: Include the caution from Randomizer::nextFloat()
https://github.com/php/doc-en/commit/67f40681074b41ddac0e11b6675df3d628a0da62
2023-10-05 20:24:45 +09:00
Yoshinari Takaoka 07cca3b0f9 MT_RAND_PHP: Indicate deprecation
https://github.com/php/doc-en/commit/c4f24e2eef1a3c970c491c0ee8cbc1f290ff023a
2023-10-05 20:20:18 +09:00
Yoshinari Takaoka d1e6e26cd5 mt_rand: Remove rand() from the see also section
https://github.com/php/doc-en/commit/0b6c76516a299395a3703e6df44f8ea4cb4549a8
2023-10-05 20:15:45 +09:00
Yoshinari Takaoka f25527d50c [status working] Randomizer::getBytesFromString(): Write documentation
https://github.com/php/doc-en/commit/f08b9a8aee8330c248cd84b3f546391fedccd9f1
2023-10-05 20:13:07 +09:00
Yoshinari Takaoka 17a6d74afb random: Update “See Also” list for lcg_value()
https://github.com/php/doc-en/commit/b2c7c9910e9d8a7419f505824bd9ca66126d7cf3
2023-10-05 19:59:25 +09:00
Yoshinari Takaoka fd7de960c5 mt_getrandmax: Remove example
https://github.com/php/doc-en/commit/c174b16add554508aafdd40c5d3f2997099882b6
2023-10-05 01:38:14 +09:00
Yoshinari Takaoka 1114ffdc63 Improve descriptions for random_*() functions
https://github.com/php/doc-en/commit/553952f03f444f2c130c35de0d1ea8dc04fa0cf9
2023-06-17 18:18:39 +09:00
Yoshinari Takaoka 9d25ec90d6 random: Unify code style in examples
https://github.com/php/doc-en/commit/826073522514072830b63bee2b6135dc675ea45d
2023-03-01 02:33:02 +09:00
Yoshinari Takaoka ef2a053014 random: Add warning about Mt19937’s tiny seed
https://github.com/php/doc-en/commit/81af2a8f5da3a6ba8611eb3dc03fd5fd4e387be4
2023-02-22 20:20:38 +09:00
Yoshinari Takaoka 68df8edcdb random: Remove examples for mt_srand() and srand()
These examples teach the readers bad practices, because they indicate that
seeding from the current time is reasonable (it is not). Users should ideally
use the `random_int()` function. If that is not possible, the
`Random\Randomizer` is the next best choice. If that's not an option either,
then relying on the random seed of the global Mt19937 is better than any manual
seeding that relies on the current time.

https://github.com/php/doc-en/commit/823cfabfbd98d69e7bae993c5edc6e92a20bab77
2023-02-22 15:59:17 +09:00
Yoshinari Takaoka adae10c983 random: Drop the range constraints from getInt()/random_int()
It’s impossible to pass an integer that does not fall into the documented
range, making this useless information. Integers outside these ranges will be
converted into floats, making those a TypeError.

https://github.com/php/doc-en/commit/970d08a3b333c58b6e7d6a5aab9eb5d9cf714fd7
2023-01-19 02:49:11 +09:00
Yoshinari Takaoka 30148f4f14 random: Add description to extension constants
https://github.com/php/doc-en/commit/7453a50321f0834421cebea8edade14deef5466b
2022-11-22 21:46:24 +09:00
Yoshinari Takaoka 36892bed9d "暗号学的にセキュア" に統一
find . -type f -name "*.xml" -print0 | xargs -0 sed -i -e "s/暗号学的に安全/暗号学的にセキュア/"
セキュリティの文脈では「セキュア」とした方がしっくりくる
2022-11-22 07:21:43 +09:00
Yoshinari Takaoka a0b7e8b1bf find . -type f -name "*.xml" -print0 | xargs -0 sed -i -e "s/暗号論/暗号学/"
「暗号学」は cryptology であるが、「暗号の理論的に安全な」を短くしたものとして、「暗号学的に安全な」と言い換えておく。
2022-11-21 21:54:39 +09:00
Yoshinari Takaoka 5f68fa6d3b "uniformly" の訳を改善
そもそも "uniformly" が、試行結果が一様分布になる、という意味だと理解している。
要するにサイコロである。そのニュアンスが PHPer に一番伝わる日本語は何か? と考えた結果、
サイコロが思い浮かぶような日本語、つまり「等確率で出る」という訳に落ち着いた。
2022-11-19 06:06:51 +09:00
Yoshinari Takaoka 550bf90839 random: Improve the non-CSPRNG warning
https://github.com/php/doc-en/commit/fc1e94a9c2e271c7cefd86f28a1cb5bc30a52664
2022-11-17 20:34:10 +09:00
Yoshinari Takaoka 928a95f7f6 random: Improve short descriptions for methods
ext/random の日本語版への追随はまだ。

https://github.com/php/doc-en/commit/215fd48515e0793760b2079fff8380c629e11b3f
2022-11-16 03:02:30 +09:00
Yoshinari Takaoka d6e901710a random: Clean up cross-references for randomness related functions
https://github.com/php/doc-en/commit/52c495140bdb84f45f186bfb1cccf09788b0121e
2022-11-15 23:16:42 +09:00
Yoshinari Takaoka a511df4593 Stop referring to openssl_random_pseudo_bytes() outside of ext/openssl
https://github.com/php/doc-en/commit/2ab45105b4302f7eed510a629226956ee0ab5be3
2022-11-11 19:56:57 +09:00
Yoshinari Takaoka 30972266ff Extend ext/random documentation (3)
https://github.com/php/doc-en/commit/466f58e332a6afd289fe1e48f85031e88f1823bc
2022-11-09 08:30:19 +09:00
Yoshinari Takaoka 4af1f51798 Update EN-Revision only / Extend ext/random documentation (2)
ext/random のクラス関連は、まだ内容が埋まってないので追随はしない。

https://github.com/php/doc-en/commit/4bb7c8dab439c876087b6ff01fe7a7dd6751f331
2022-11-06 12:44:23 +09:00
Yoshinari Takaoka 392b16db39 Extend ext/random documentation
日本語版は、まだ reference/random 以下のクラス定義は追随しない。
まだ Tim からの PR が続いているので、内容が安定するまで待つ。

https://github.com/php/doc-en/commit/4b1b9be99eba5fbce2de1190b5eba692bf09da11
2022-10-31 08:18:59 +09:00
Yoshinari Takaoka 78aac16cde Bootstrap ext/random docs with docgen
https://github.com/php/doc-en/commit/2166824858a40ea664c558f2930b63b8f4fd89c6
2022-10-28 23:38:08 +09:00