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 Lukasa, dstufft, georg.brandl, larry, martin.panter, ned.deily, steven.daprano, vstinner
Date 2016-06-16.13:14:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1466082867.89.0.114221085666.issue27292@psf.upfronthosting.co.za>
In-reply-to
Content
> As far as I can see (looking at Python/random.c and configure.ac), the Solaris version should also use GRND_NONBLOCK:

Oh, you're right: I didn't notice that GRND_NONBLOCK was also used on Solaris. The change is not deliberate, but it is good to do that :-)

Solaris getrandom() is documented to fail with EAGAIN if "No entropy is available and GRND_NONBLOCK is set."
https://docs.oracle.com/cd/E53394_01/html/E54765/getrandom-2.html

The question is more if reading from /dev/urandom block in this case.

If we don't know, I would prefer to keep the "On Linux" prefix in the doc, and don't say anything about Solaris.

I'm able to check the behaviour of Solaris.

You should contact the developers who get access to Solaris, you can meet them in the previous random issues specific to Solaris: issue #25003 and issue #26735.
History
Date User Action Args
2016-06-16 13:14:27vstinnersetrecipients: + vstinner, georg.brandl, larry, ned.deily, steven.daprano, martin.panter, dstufft, Lukasa
2016-06-16 13:14:27vstinnersetmessageid: <1466082867.89.0.114221085666.issue27292@psf.upfronthosting.co.za>
2016-06-16 13:14:27vstinnerlinkissue27292 messages
2016-06-16 13:14:27vstinnercreate