New submission from Jernej Simončič <jernej+s-pyt...@eternallybored.org>:
I'm playing with Gentoo in LXC running on ARM-based QNAP NAS, and when trying to compile Python 3.5.4, the build failed with "Fatal Python error: failed to get random numbers to initialize Python" (full details at https://forums.gentoo.org/viewtopic-p-8172124.html ). glibc in the environment is 2.25 (supports getrandom), while kernel is 3.10 (doesn't support getrandom). Looking at random.c, pyurandom returns -1 instead of falling back to dev_urandom when py_getrandom returns -1, so the attached fix is simple. ---------- components: Build files: random_fallback.patch keywords: patch messages: 310158 nosy: jernejs priority: normal severity: normal status: open title: Fallback to dev_urandom doesn't work when py_getrandom returns -1 versions: Python 3.5, Python 3.6 Added file: https://bugs.python.org/file47389/random_fallback.patch _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32580> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com