[3.12] gh-123789: secrets.randbits returns only non-negative int (GH-123801) (#123831)

gh-123789: `secrets.randbits` returns only non-negative int (GH-123801)
(cherry picked from commit beee91cdcc)

Co-authored-by: Wulian <1055917385@qq.com>
This commit is contained in:
Miss Islington (bot) 2024-09-08 06:24:08 +02:00 committed by GitHub
parent e0c69e479c
commit 77bb146221
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,7 +52,7 @@ randomness that your operating system provides.
.. function:: randbits(k)
Return an int with *k* random bits.
Return a non-negative int with *k* random bits.
Generating tokens