New submission from STINNER Victor:

Reading more than 256 bytes from os.urandom() is different than reading 256 
bytes or less. For example, see getrandom() and getentropy() manual pages for 
more details.

random.Random doesn't need a very high quality entropy. The glib library only 
reads 128 bits from /dev/urandom to initialize the Mersenne Twister RNG for 
example.

----------
messages: 267905
nosy: christian.heimes, haypo
priority: normal
severity: normal
status: open
title: random.Random should not read 2500 bytes from urandom
versions: Python 2.7, Python 3.5, Python 3.6

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

Reply via email to