mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
[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:
parent
e0c69e479c
commit
77bb146221
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue