]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
py_getrandom(): use long type for the syscall() result
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 16 Jun 2016 21:53:47 +0000 (23:53 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 16 Jun 2016 21:53:47 +0000 (23:53 +0200)
commitec721f3305c04b5d136e2d21cb73c5bdfdd81684
treeb931eb1fd826a80a73d27279ea4d9f2a8d095ca5
parentadef6460d73ce1ab33af9c9ef014aa88f23c6d62
py_getrandom(): use long type for the syscall() result

Issue #27278. It should fix a conversion warning.

In practice, the Linux kernel doesn't return more than 32 MB per call to the
getrandom() syscall.
Python/random.c