mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 17:51:06 -03:30
Fix error due to randint inclusivity
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