mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
What's New in Python 3.5: document os.urandom() changes
This commit is contained in:
parent
988101364a
commit
ace8848df6
2 changed files with 11 additions and 0 deletions
|
@ -3730,3 +3730,9 @@ Miscellaneous Functions
|
||||||
|
|
||||||
For an easy-to-use interface to the random number generator
|
For an easy-to-use interface to the random number generator
|
||||||
provided by your platform, please see :class:`random.SystemRandom`.
|
provided by your platform, please see :class:`random.SystemRandom`.
|
||||||
|
|
||||||
|
.. versionchanged:: 3.5
|
||||||
|
On Linux 3.17 and newer, the ``getrandom()`` syscall is now used
|
||||||
|
when available. On OpenBSD 5.6 and newer, the C ``getentropy()``
|
||||||
|
function is now used. These functions avoid the usage of an internal file
|
||||||
|
descriptor.
|
||||||
|
|
|
@ -648,6 +648,11 @@ os
|
||||||
* :class:`os.stat_result` now has a :attr:`~os.stat_result.st_file_attributes`
|
* :class:`os.stat_result` now has a :attr:`~os.stat_result.st_file_attributes`
|
||||||
attribute on Windows. (Contributed by Ben Hoyt in :issue:`21719`.)
|
attribute on Windows. (Contributed by Ben Hoyt in :issue:`21719`.)
|
||||||
|
|
||||||
|
* :func:`os.urandom`: On Linux 3.17 and newer, the ``getrandom()`` syscall is
|
||||||
|
now used when available. On OpenBSD 5.6 and newer, the C ``getentropy()``
|
||||||
|
function is now used. These functions avoid the usage of an internal file
|
||||||
|
descriptor.
|
||||||
|
|
||||||
os.path
|
os.path
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue