Message274698
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 |
|
| Date |
User |
Action |
Args |
| 2016-09-07 01:44:03 | martin.panter | set | recipients:
+ martin.panter, ncoghlan, vstinner, python-dev |
| 2016-09-07 01:44:03 | martin.panter | set | messageid: <[email protected]> |
| 2016-09-07 01:44:03 | martin.panter | link | issue27778 messages |
| 2016-09-07 01:44:03 | martin.panter | create | |
|