https://github.com/python/cpython/commit/77bb14622172c1a5d7d712bfe7050e7277d7ebb0
commit: 77bb14622172c1a5d7d712bfe7050e7277d7ebb0
branch: 3.12
author: Miss Islington (bot) <[email protected]>
committer: hauntsaninja <[email protected]>
date: 2024-09-08T04:24:08Z
summary:

[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 beee91cdcc0dbecab252f7c5c7c51e2adb8edc26)

Co-authored-by: Wulian <[email protected]>

files:
M Doc/library/secrets.rst

diff --git a/Doc/library/secrets.rst b/Doc/library/secrets.rst
index 1401a925103517..75dafc54d40ca5 100644
--- a/Doc/library/secrets.rst
+++ b/Doc/library/secrets.rst
@@ -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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to