Author vstinner
Recipients Decorater, ncoghlan, python-dev, vstinner
Date 2016-08-19.12:28:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Enhanced patch to address Nick's comments and fix mistakes. The new patch now also updates the documentation.

I restored the code in _random.Random.seed() to fallback on the system clock: _PyOS_URandomNonblock() *can* fail is /dev/urandom is missing or not readable. I enhanced this part to not only read the system clock, but also use the current process identifier and get also the monotonic clock. Moreover, 64 bits are now used instead of 32 bits from the system clock (use a resolution of 1 nanoscond, not only 1 second).

I didn't test yet the fall back on clocks/pid. It should be tested manually by modifying _PyOS_URandomNonblock() to always fail.
Date User Action Args
2016-08-19 12:28:59vstinnersetrecipients: + vstinner, ncoghlan, python-dev, Decorater
2016-08-19 12:28:58vstinnersetmessageid: <>
2016-08-19 12:28:58vstinnerlinkissue27776 messages
2016-08-19 12:28:54vstinnercreate