Stefan Krah added the comment:

On Tue, Jun 07, 2016 at 10:01:16AM +0000, STINNER Victor wrote:
> Maybe need something like time.get_clock_info(), sys.float_info and 
> sys.thread_info for os.urandom(): a string describing the implementation of 
> os.urandom(). It would allow the developer to decide what to do when 
> getrandom() is not used.

I think this is a very good idea. Just a flag for "cryptographically secure" or 
not.

----------

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

Reply via email to