Skip to content

Commit 77bb146

Browse files
[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 beee91c) Co-authored-by: Wulian <[email protected]>
1 parent e0c69e4 commit 77bb146

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)