Skip to content

Commit

Permalink
[3.12] gh-123789: secrets.randbits returns only non-negative int (G…
Browse files Browse the repository at this point in the history
…H-123801) (#123831)

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

Co-authored-by: Wulian <1055917385@qq.com>
  • Loading branch information
miss-islington and Wulian233 committed Sep 8, 2024
1 parent e0c69e4 commit 77bb146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/secrets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77bb146

Please sign in to comment.