On Jun 09 2016, Larry Hastings <larry@hastings.org> wrote:Nope, I want the old behavior back. os.urandom() should read /dev/random if getrandom() would block. As the British say, "it should do what it says on the tin".Aeh, what the tin says is "return random bytes".
A read from the /dev/urandom device will not block waiting for more entropy. If there is not sufficient entropy, a pseudorandom number generator is used to create the requested bytes.os.urandom() needs to behave like that on Linux, which is how it behaved in Python 2.4 through 3.4.