]> granicus.if.org Git - python/commitdiff
Merge 3.5 (os.urandom, issue #27278)
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 14 Jun 2016 14:33:17 +0000 (16:33 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 14 Jun 2016 14:33:17 +0000 (16:33 +0200)
1  2 
Misc/NEWS
Python/random.c

diff --cc Misc/NEWS
index bf7b8f10ffe30c566cecf7094b05b24912c7ae66,7940cdcb6b82393d2c997b22a8123bcad21e0cb1..7311a657f6f6971fe2bb8c46f2e7cfa24e72ea39
+++ b/Misc/NEWS
@@@ -10,9 -13,10 +10,13 @@@ What's New in Python 3.6.0 alpha 
  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 #16864: sqlite3.Cursor.lastrowid now supports REPLACE statement.
 +  Initial patch by Alex LordThorsen.
 +
  - Issue #26386: Fixed ttk.TreeView selection operations with item id's
    containing spaces.
  
diff --cc Python/random.c
Simple merge