summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-07-29 00:28:32 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-07-29 00:28:32 (GMT)
commitace8848df69ba927c6fb4af7fffef706a1a19279 (patch)
tree0be7421eabacfe3b4e5170098ae4d25928bbc611 /Doc/library
parent988101364a1f4083e9c53858a0f13e257fad9a24 (diff)
downloadcpython-ace8848df69ba927c6fb4af7fffef706a1a19279.zip
cpython-ace8848df69ba927c6fb4af7fffef706a1a19279.tar.gz
cpython-ace8848df69ba927c6fb4af7fffef706a1a19279.tar.bz2
What's New in Python 3.5: document os.urandom() changes
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/os.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 16e5019..d4032e0 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -3730,3 +3730,9 @@ Miscellaneous Functions
For an easy-to-use interface to the random number generator
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.