This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients matejcik, vstinner
Date 2015-10-18.21:09:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445202553.12.0.050681981834.issue25420@psf.upfronthosting.co.za>
In-reply-to
Content
"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.
History
Date User Action Args
2015-10-18 21:09:13vstinnersetrecipients: + vstinner, matejcik
2015-10-18 21:09:13vstinnersetmessageid: <1445202553.12.0.050681981834.issue25420@psf.upfronthosting.co.za>
2015-10-18 21:09:13vstinnerlinkissue25420 messages
2015-10-18 21:09:12vstinnercreate