[issue44260] _Random.seed() is called twice

Serhiy Storchaka report at bugs.python.org
Fri May 28 10:27:28 EDT 2021


New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:

_Random.seed() is called twice: first it is called in _Random.__new__(), then it is called in Random.__init__(). By default it reads system enthropy, so it consumes global system resource without need.

----------
components: Extension Modules
messages: 394663
nosy: mark.dickinson, rhettinger, serhiy.storchaka
priority: normal
severity: normal
status: open
title: _Random.seed() is called twice

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44260>
_______________________________________


More information about the Python-bugs-list mailing list