Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

It may be time to start emitting a warning if a Random subclass overrides 
random() but not getrandbits() or vice versa.

If you only override random(), methods which rely on generating random integers 
will use worse algorithm (slightly less uniform). If you only override 
getrandbits(), -- it is even worse, methods which rely on generating random 
floating point number will be not affected.

----------
nosy: +serhiy.storchaka

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

Reply via email to