Message366922
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. |
|
Date |
User |
Action |
Args |
2020-04-21 15:31:28 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, tim.peters, rhettinger, mark.dickinson, pitrou, vstinner |
2020-04-21 15:31:28 | serhiy.storchaka | set | messageid: <1587483088.1.0.379988317318.issue40346@roundup.psfhosted.org> |
2020-04-21 15:31:28 | serhiy.storchaka | link | issue40346 messages |
2020-04-21 15:31:27 | serhiy.storchaka | create | |
|