mirror of
https://github.com/python/cpython.git
synced 2024-11-23 09:54:58 +08:00
gh-123789: secrets.randbits
returns only non-negative int (#123801)
This commit is contained in:
parent
11fa119879
commit
beee91cdcc
@ -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…
Reference in New Issue
Block a user