mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 11:27:36 -02:30
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:
@@ -251,7 +251,7 @@ def gen_utf_char():
|
|||||||
is_char = False
|
is_char = False
|
||||||
b = 'b'
|
b = 'b'
|
||||||
while not is_char:
|
while not is_char:
|
||||||
b = random.randint(32, 0x110000)
|
b = random.randint(32, 0x10ffff)
|
||||||
is_char = chr(b).isprintable()
|
is_char = chr(b).isprintable()
|
||||||
return chr(b)
|
return chr(b)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user