]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-123789: `secrets.randbits` returns only non-negative int (#123801)
authorWulian <1055917385@qq.com>
Sun, 8 Sep 2024 04:17:59 +0000 (12:17 +0800)
committerGitHub <noreply@github.com>
Sun, 8 Sep 2024 04:17:59 +0000 (21:17 -0700)
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