STINNER Victor added the comment:

> I dislike the “block” term for a different reason: it suggests raising EAGAIN 
> (= BlockingIOError). But the proposal here is actually to generate data with 
> low entropy.

Since os.urandom() is part of the os module, yes, I'm suggesting to raise 
BlockingIOError. The caller would be responsible to handle this error and make 
a choice. For example, random.py can reuse its fallback on time.time().

----------

_______________________________________
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