Closed Kodiologist closed 3 weeks ago
The docstring of secrets.randbits reads, in its entirety, "Return an int with k random bits." In fact, it only generates nonnegative integers, like its sister function random.getrandbits.
secrets.randbits
random.getrandbits
PR welcome!
A
Now we can close this🎉
Looks good. Thanks.
Documentation
The docstring of
secrets.randbits
reads, in its entirety, "Return an int with k random bits." In fact, it only generates nonnegative integers, like its sister functionrandom.getrandbits
.Linked PRs