Merge pull request #4462 from AlanCoding/the_edge_of_unicode

Fix error due to randint inclusivity

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
softwarefactory-project-zuul[bot] 2019-08-12 19:02:04 +00:00 committed by GitHub
commit 99357acf5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)