Message253163
"The RNG is seeded from os.urandom, which as of python 3.5 uses the potentially blocking getrandom() call."
Hum ok, so your issue is specific to Linux.
"This causes problems e.g. on our build VMs that don't have true entropy, so getrandom() blocks forever"
Hum, the problem was already fixed some months/years ago: you must attach a RNG virtio device to your VM. Python is just one example, a lot of applications need entropy.
"A possible workaround is to monkeypatch os.urandom (in this particular case, to return a string of zeroes and remove randomness entirely to get reproducible builds)"
An unsafe *workaround* is to install haveged, a daemon generating entropy using the CPU. |
|
Date |
User |
Action |
Args |
2015-10-18 21:09:13 | vstinner | set | recipients:
+ vstinner, matejcik |
2015-10-18 21:09:13 | vstinner | set | messageid: <1445202553.12.0.050681981834.issue25420@psf.upfronthosting.co.za> |
2015-10-18 21:09:13 | vstinner | link | issue25420 messages |
2015-10-18 21:09:12 | vstinner | create | |
|