[issue44260] _Random.seed() is called twice
Raymond Hettinger
report at bugs.python.org
Sun May 30 02:41:51 EDT 2021
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
Consider moving seeding from _random.Random.__new__ to _random.Random.__init__. Since random.Random.__init__ doesn't call the super(), the C version never gets called, avoiding the double seeding. But, it still lets _random.Random function as a standalone class.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44260>
_______________________________________
More information about the Python-bugs-list
mailing list