mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
18 lines
439 B
Python
18 lines
439 B
Python
|
|
#ODASA-3688
|
|
def generate_random_string(char_sequences, length):
|
|
random_string = ""
|
|
|
|
# Two tests of the same variable to force splitting of the flow-graph
|
|
if char_sequences:
|
|
for char_seq in char_sequences:
|
|
pass
|
|
|
|
def func_used():
|
|
pass
|
|
|
|
#Only use the variable on one of the split arms.
|
|
if char_sequences:
|
|
while len(random_string) < length:
|
|
random_string += func_used()
|