Generate a random string of specified length
(length)
| 130 | |
| 131 | |
| 132 | def rand_bytes(length): |
| 133 | """Generate a random string of specified length""" |
| 134 | return "".join(random.choice(char_pool) for _ in range(length)) |
| 135 | |
| 136 | |
| 137 | def test_string_ops(num_tests, length): |