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 lemburg
Recipients doko, lemburg, matejcik, rhettinger, skrah, socketpair, thomas-petazzoni, vstinner
Date 2016-04-26.15:11:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
As mentioned on the other issue #25420, this is a regression and a change in documented behavior of os.urandom(), which is expected to be non-blocking, regardless of whether entropy is available or not.

The fix should be easy (from reading the man page set the GRND_NONBLOCK flag on getrandom(); then, if the function returns -1 and sets EAGAIN, fallback to reading from /dev/urandom directly.
Date User Action Args
2016-04-26 15:11:14lemburgsetrecipients: + lemburg, rhettinger, doko, vstinner, matejcik, skrah, socketpair, thomas-petazzoni
2016-04-26 15:11:14lemburgsetmessageid: <>
2016-04-26 15:11:14lemburglinkissue26839 messages
2016-04-26 15:11:14lemburgcreate