]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-123789: `secrets.randbits` returns only non-negative int (GH-123801) (...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 8 Sep 2024 04:24:08 +0000 (06:24 +0200)
committerGitHub <noreply@github.com>
Sun, 8 Sep 2024 04:24:08 +0000 (04:24 +0000)
gh-123789: `secrets.randbits` returns only non-negative int (GH-123801)
(cherry picked from commit beee91cdcc0dbecab252f7c5c7c51e2adb8edc26)

Co-authored-by: Wulian <1055917385@qq.com>
Doc/library/secrets.rst

index 1401a925103517efbe964c2152e2a6d60f761bb7..75dafc54d40ca58238309ad5b2e3f770611fe12a 100644 (file)
@@ -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