[Python-Dev] BDFL ruling request: should we block forever waiting for high-quality random bits? (original) (raw)

Larry Hastings larry at hastings.org
Thu Jun 9 18:33:03 EDT 2016


On 06/09/2016 10:22 AM, Donald Stufft wrote:

On Jun 9, 2016, at 1:14 PM, Steven D'Aprano <steve at pearwood.info> wrote:

Just to be clear, this is only an option on Linux, right? All the other major platforms block, whatever we decide to do on Linux. Including Windows? To my knowledge, all other major platforms block or otherwise ensure that /dev/urandom can never return anything but cryptographically secure random. [1]

I've done some research into this over the past couple of days. To the best of my knowledge:

On all of those platforms except Linux, /dev/random and /dev/urandom are exactly the same.

Also, regarding Windows: Victor Stinner did some experiments with a VM, and even in early startup he was able to get random bits from os.urandom(). But it's hard to have a "fresh" Windows VM, so it's possible it had residual entropy from a previous boot, so this isn't conclusive.

//arry/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20160609/e20589df/attachment.html>



More information about the Python-Dev mailing list