Christian Heimes added the comment:

I'm -1 on a block=True/False parameter. It makes the API more awkward and will 
make people move away from os.urandom() to a self-made RNG because they 
perceive os.urandom() as potential blocking.

Victor, you can use sysctl on all BSD and Linux to check if the RNG has been 
seeded. On Linux it is kernel.random.entropy_avail >= 
kernel.random.read_wakeup_threshold. On BSD it is kern.random.sys.seeded == 1.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27266>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to