Author martin.panter
Recipients martin.panter, ncoghlan, python-dev, vstinner
Date 2016-09-07.01:44:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473212643.23.0.591316786797.issue27778@psf.upfronthosting.co.za>
In-reply-to
Content
HAVE_GETRANDOM_SYSCALL seems to be a compile-time library check, not a runtime check. I compiled and run on Linux 3.15.5, and os.getrandom() exists but raises ENOSYS:

======================================================================
ERROR: test_getrandom0 (test.test_os.GetRandomTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/disk/home/proj/python/cpython/Lib/test/test_os.py", line 1280, in test_getrandom0
    empty = os.getrandom(0)
OSError: [Errno 38] Function not implemented
History
Date User Action Args
2016-09-07 01:44:03martin.pantersetrecipients: + martin.panter, ncoghlan, vstinner, python-dev
2016-09-07 01:44:03martin.pantersetmessageid: <1473212643.23.0.591316786797.issue27778@psf.upfronthosting.co.za>
2016-09-07 01:44:03martin.panterlinkissue27778 messages
2016-09-07 01:44:03martin.pantercreate