STINNER Victor added the comment: I changed the title to make my intent more explicit: the goal is to make os.urandom() more secure on Linux by always using getrandom(). But always using getrandom() in os.urandom() requires a non-blocking os.urandom() to start Python: see #25420 (import random) and #26839 (hash secret) for practical issues.
I removed Python 3.5 from versions since Larry explicitly asked to not add a new parameter to os.urandom() in Python 3.5: msg267721. ---------- title: Add block keyword-only optional parameter to os.urandom() -> Always use getrandom() in os.random() and add block=False parameter to os.urandom() type: -> enhancement versions: -Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27266> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com