[issue44593] _randbelow_with_getrandbits may request an unnecessary random bit
lormuc
report at bugs.python.org
Fri Jul 9 16:46:32 EDT 2021
New submission from lormuc <benjamin.petrenko at gmail.com>:
For example, Lib/random.py/Random._randbelow_with_getrandbits(1) should always return 0, as per docstring, but it asks for 1 random bit from getrandbits().
----------
components: Library (Lib)
messages: 397219
nosy: lormuc
priority: normal
severity: normal
status: open
title: _randbelow_with_getrandbits may request an unnecessary random bit
type: resource usage
versions: Python 3.11
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44593>
_______________________________________
More information about the Python-bugs-list
mailing list