<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<div class="moz-cite-prefix">On 06/14/2016 08:07 AM, Steven D'Aprano
wrote:<br>
</div>
<blockquote cite="mid:20160614150713.GX27919@ando.pearwood.info"
type="cite">
<pre wrap="">Is this right? I thought we had decided that os.urandom should *not*
fall back on getrandom on Linux?
</pre>
</blockquote>
<br>
We decided that os.urandom() should not *block* on Linux. Which it
doesn't; we now strictly call getrandom(GRND_NONBLOCK), which will
never block. getrandom() is better because it's a system call,
instead of reading from a file. So it's much less messy.<br>
<br>
If getrandom() wanted to block, instead it'll return EAGAIN, and
we'll fail over to reading from /dev/urandom directly, just like we
did in 3.4 and before.<br>
<br>
It's all working as intended,<br>
<br>
<br>
<i>/arry</i><br>
</body>
</html>