From 0646c6f6acd15b49a5372c14ec01ad24edecefcd Mon Sep 17 00:00:00 2001 From: Laura Liberda Date: Thu, 24 Dec 2020 00:29:54 +0100 Subject: [PATCH] fix crash on pre-3.9 --- librefi/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librefi/utils.py b/librefi/utils.py index d4c7a55..3460d33 100644 --- a/librefi/utils.py +++ b/librefi/utils.py @@ -316,7 +316,7 @@ def get_email_address(): for i in range(random.randint(3, 9)): email += chr(97 + random.randint(0, 24)) # ~50% chance - if random.randbytes(1): + if random.getrandbits(1): # random digits email += compat_str(random.randint(0, 9999)) return email + "@" + random.choice((