summaryrefslogtreecommitdiffstats
path: root/Include/enumobject.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-01-09 10:18:53 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-01-09 10:18:53 (GMT)
commit035ba5da3e53e45c712b39fe1f6fb743e697c032 (patch)
treee7c8b948e3b2405d9e629d0b9fff0baf37335a58 /Include/enumobject.h
parent9937d90ee8c3facf6b5395e7b714a535c9352d57 (diff)
downloadcpython-035ba5da3e53e45c712b39fe1f6fb743e697c032.zip
cpython-035ba5da3e53e45c712b39fe1f6fb743e697c032.tar.gz
cpython-035ba5da3e53e45c712b39fe1f6fb743e697c032.tar.bz2
Issue #29157: Prefer getrandom() over getentropy()
Copy and then adapt Python/random.c from default branch. Difference between 3.5 and default branches: * Python 3.5 only uses getrandom() in non-blocking mode: flags=GRND_NONBLOCK * If getrandom() fails with EAGAIN: py_getrandom() immediately fails and remembers that getrandom() doesn't work. * Python 3.5 has no _PyOS_URandomNonblock() function: _PyOS_URandom() works in non-blocking mode on Python 3.5
Diffstat (limited to 'Include/enumobject.h')
0 files changed, 0 insertions, 0 deletions