New submission from lormuc :
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
<https://bugs.python.org/issue44593>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com