[issue27266] Always use getrandom() in os.random() and add block=False parameter to os.urandom()
STINNER Victor
report at bugs.python.org
Wed Jun 8 12:23:19 EDT 2016
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 <report at bugs.python.org>
<http://bugs.python.org/issue27266>
_______________________________________
More information about the Python-bugs-list
mailing list