(length=32)
| 87 | |
| 88 | |
| 89 | def generate_random_string(length=32): |
| 90 | # 定义可能的字符集合 |
| 91 | characters = string.ascii_letters + string.digits + string.punctuation |
| 92 | # 使用random.choice随机选择字符,并连接成字符串 |
| 93 | random_string = "".join(random.choice(characters) for i in range(length)) |
| 94 | return random_string |
| 95 | |
| 96 | |
| 97 | def generate_random_ipv6_manual(): |
no outgoing calls
no test coverage detected