https://github.com/python/cpython/commit/beee91cdcc0dbecab252f7c5c7c51e2adb8edc26
commit: beee91cdcc0dbecab252f7c5c7c51e2adb8edc26
branch: main
author: Wulian <[email protected]>
committer: hauntsaninja <[email protected]>
date: 2024-09-07T21:17:59-07:00
summary:

gh-123789: `secrets.randbits` returns only non-negative int (#123801)

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