From beee91cdcc0dbecab252f7c5c7c51e2adb8edc26 Mon Sep 17 00:00:00 2001 From: Wulian <1055917385@qq.com> Date: Sun, 8 Sep 2024 12:17:59 +0800 Subject: [PATCH] gh-123789: `secrets.randbits` returns only non-negative int (#123801) --- Doc/library/secrets.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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