@@ -15,7 +15,7 @@ msgid ""
1515msgstr ""
1616"Project-Id-Version : Python 3.14\n "
1717"Report-Msgid-Bugs-To : \n "
18- "POT-Creation-Date : 2026-11-07 19:16 +0000\n "
18+ "POT-Creation-Date : 2026-11-17 22:46 +0000\n "
1919"PO-Revision-Date : 2026-05-08 17:18+0000\n "
2020"Last-Translator : zhoubo, 2026\n "
2121"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -7690,18 +7690,22 @@ msgstr ""
76907690
76917691#: ../../library/os.rst:5972
76927692msgid ""
7693- "On a Unix-like system, random bytes are read from the ``/dev/urandom`` "
7694- "device. If the ``/dev/urandom`` device is not available or not readable, the"
7695- " :exc:`NotImplementedError` exception is raised."
7693+ "On other Unix-like systems, the C ``getrandom()`` function is used if it is "
7694+ "available, otherwise the C ``getentropy()`` function."
7695+ msgstr ""
7696+
7697+ #: ../../library/os.rst:5975
7698+ msgid ""
7699+ "If none of these functions can be used, random bytes are read from the "
7700+ "``/dev/urandom`` device. If the ``/dev/urandom`` device is not available or "
7701+ "not readable, the :exc:`NotImplementedError` exception is raised."
76967702msgstr ""
7697- "在类 Unix 系统上,随机字节是从 ``/dev/urandom`` 设备读取的。如果 ``/dev/urandom`` 设备不可用或不可读,则抛出 "
7698- ":exc:`NotImplementedError` 异常。"
76997703
7700- #: ../../library/os.rst:5976
7704+ #: ../../library/os.rst:5979
77017705msgid "On Windows, it will use ``BCryptGenRandom()``."
77027706msgstr "在 Windows 上,它将使用 ``BCryptGenRandom()``。"
77037707
7704- #: ../../library/os.rst:5979
7708+ #: ../../library/os.rst:5982
77057709msgid ""
77067710"The :mod:`secrets` module provides higher level functions. For an easy-to-"
77077711"use interface to the random number generator provided by your platform, "
@@ -7710,7 +7714,7 @@ msgstr ""
77107714":mod:`secrets` 模块提供了更高级的功能。所在平台会提供随机数生成器,有关其易于使用的接口,请参阅 "
77117715":class:`random.SystemRandom`。"
77127716
7713- #: ../../library/os.rst:5983
7717+ #: ../../library/os.rst:5986
77147718msgid ""
77157719"On Linux 3.17 and newer, the ``getrandom()`` syscall is now used when "
77167720"available. On OpenBSD 5.6 and newer, the C ``getentropy()`` function is now"
@@ -7719,27 +7723,27 @@ msgstr ""
77197723"在 Linux 3.17 和更高版本上,现在使用 ``getrandom()`` 系统调用(如果可用)。在 OpenBSD 5.6 "
77207724"和更高版本上,现在使用 ``getentropy()`` C 函数。这些函数避免了使用内部文件描述符。"
77217725
7722- #: ../../library/os.rst:5989
7726+ #: ../../library/os.rst:5992
77237727msgid ""
77247728"On Linux, if the ``getrandom()`` syscall blocks (the urandom entropy pool is"
77257729" not initialized yet), fall back on reading ``/dev/urandom``."
77267730msgstr ""
77277731"在 Linux 上,如果 ``getrandom()`` 系统调用阻塞(urandom 熵池尚未初始化完毕),则退回一步读取 "
77287732"``/dev/urandom``。"
77297733
7730- #: ../../library/os.rst:5993
7734+ #: ../../library/os.rst:5996
77317735msgid ""
77327736"On Linux, ``getrandom()`` is now used in blocking mode to increase the "
77337737"security."
77347738msgstr "在 Linux 上,``getrandom()`` 现在以阻塞模式使用,以提高安全性。"
77357739
7736- #: ../../library/os.rst:5997
7740+ #: ../../library/os.rst:6000
77377741msgid ""
77387742"On Windows, ``BCryptGenRandom()`` is used instead of ``CryptGenRandom()`` "
77397743"which is deprecated."
77407744msgstr "在 Windows 上,将使用 ``BCryptGenRandom()`` 而不是已被弃用的 ``CryptGenRandom()``。"
77417745
7742- #: ../../library/os.rst:6003
7746+ #: ../../library/os.rst:6006
77437747msgid ""
77447748"By default, when reading from ``/dev/random``, :func:`getrandom` blocks if "
77457749"no random bytes are available, and when reading from ``/dev/urandom``, it "
@@ -7748,7 +7752,7 @@ msgstr ""
77487752"默认情况下,从 ``/dev/random`` 读取时,如果没有可用的随机字节,则 :func:`getrandom` 会阻塞;从 "
77497753"``/dev/urandom`` 读取时,如果熵池尚未初始化,则会阻塞。"
77507754
7751- #: ../../library/os.rst:6007
7755+ #: ../../library/os.rst:6010
77527756msgid ""
77537757"If the :py:data:`GRND_NONBLOCK` flag is set, then :func:`getrandom` does not"
77547758" block in these cases, but instead immediately raises "
@@ -7757,7 +7761,7 @@ msgstr ""
77577761"如果设置了 :py:data:`GRND_NONBLOCK` 标志,则这些情况下 :func:`getrandom` 不会阻塞,而是立即抛出 "
77587762":exc:`BlockingIOError` 异常。"
77597763
7760- #: ../../library/os.rst:6014
7764+ #: ../../library/os.rst:6017
77617765msgid ""
77627766"If this bit is set, then random bytes are drawn from the "
77637767"``/dev/random`` pool instead of the ``/dev/urandom`` pool."
0 commit comments