summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-06-14 14:31:35 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-06-14 14:31:35 (GMT)
commitb98a36e8f3006512f0fa4d94309fb9918eb8abdd (patch)
tree70145e9fc9f6bb7e0698abf2798f23e71a000681 /Misc
parentfd7f19ea67b0585929e723303c40de9153bba91d (diff)
downloadcpython-b98a36e8f3006512f0fa4d94309fb9918eb8abdd.zip
cpython-b98a36e8f3006512f0fa4d94309fb9918eb8abdd.tar.gz
cpython-b98a36e8f3006512f0fa4d94309fb9918eb8abdd.tar.bz2
Fix os.urandom() using getrandom() on Linux
Issue #27278: Fix os.urandom() implementation using getrandom() on Linux. Truncate size to INT_MAX and loop until we collected enough random bytes, instead of casting a directly Py_ssize_t to int.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index e132b96..7940cdc 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -13,6 +13,10 @@ Core and Builtins
Library
-------
+- Issue #27278: Fix os.urandom() implementation using getrandom() on Linux.
+ Truncate size to INT_MAX and loop until we collected enough random bytes,
+ instead of casting a directly Py_ssize_t to int.
+
- Issue #26386: Fixed ttk.TreeView selection operations with item id's
containing spaces.