Fix error due to randint inclusivity

This commit is contained in:
AlanCoding 2019-08-12 13:36:53 -04:00
parent a776d0ba59
commit 3a5e609a11
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

View File

@ -251,7 +251,7 @@ def gen_utf_char():
is_char = False
b = 'b'
while not is_char:
b = random.randint(32, 0x110000)
b = random.randint(32, 0x10ffff)
is_char = chr(b).isprintable()
return chr(b)