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 martin.panter
Recipients Lukasa, dstufft, georg.brandl, larry, martin.panter, ned.deily, steven.daprano, vstinner
Date 2016-06-16.13:08:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1466082536.07.0.243810345956.issue27292@psf.upfronthosting.co.za>
In-reply-to
Content
Rebased so Rietveld can work with it, earlier version was my fault.

As far as I can see (looking at Python/random.c and configure.ac), the Solaris version should also use GRND_NONBLOCK:

#ifdef MS_WINDOWS
#elif defined(HAVE_GETENTROPY) && !defined(sun)
#else

#if defined(HAVE_GETRANDOM) || defined(HAVE_GETRANDOM_SYSCALL)
    const int flags = GRND_NONBLOCK;
#ifdef HAVE_GETRANDOM
            n = getrandom(dest, n, flags);
#else
            n = syscall(SYS_getrandom, dest, n, flags);
#endif

Apart from using a C function call versus syscall(), I don’t see there is much difference between the Solaris and Linux cases. Correct me if I’m wrong though.
History
Date User Action Args
2016-06-16 13:08:56martin.pantersetrecipients: + martin.panter, georg.brandl, vstinner, larry, ned.deily, steven.daprano, dstufft, Lukasa
2016-06-16 13:08:56martin.pantersetmessageid: <1466082536.07.0.243810345956.issue27292@psf.upfronthosting.co.za>
2016-06-16 13:08:56martin.panterlinkissue27292 messages
2016-06-16 13:08:55martin.pantercreate