[issue40286] Add getrandbytes() method to random.Random
Raymond Hettinger
report at bugs.python.org
Tue Apr 14 19:00:46 EDT 2020
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
If we have to have this, the method name should be differentiated from getrandbits() because the latter returns an integer. I suggest just random.bytes(n), the same as numpy.
> Python already has three functions to generate random bytes:
Now, there will be four ;-)
----------
nosy: +rhettinger
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40286>
_______________________________________
More information about the Python-bugs-list
mailing list