Skip to content

Commit cc6aafb

Browse files
Wulian233miss-islington
authored andcommitted
pythongh-123789: secrets.randbits returns only non-negative int (pythonGH-123801)
(cherry picked from commit beee91c) Co-authored-by: Wulian <[email protected]>
1 parent 660baa1 commit cc6aafb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/secrets.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ randomness that your operating system provides.
5252

5353
.. function:: randbits(k)
5454

55-
Return an int with *k* random bits.
55+
Return a non-negative int with *k* random bits.
5656

5757

5858
Generating tokens

0 commit comments

Comments
 (0)