Message268663
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. |
|
Date |
User |
Action |
Args |
2016-06-16 13:08:56 | martin.panter | set | recipients:
+ martin.panter, georg.brandl, vstinner, larry, ned.deily, steven.daprano, dstufft, Lukasa |
2016-06-16 13:08:56 | martin.panter | set | messageid: <1466082536.07.0.243810345956.issue27292@psf.upfronthosting.co.za> |
2016-06-16 13:08:56 | martin.panter | link | issue27292 messages |
2016-06-16 13:08:55 | martin.panter | create | |
|