Generate a random alphanumeric string.
(length: int = 10)
| 40 | |
| 41 | |
| 42 | def random_string(length: int = 10) -> str: |
| 43 | """Generate a random alphanumeric string.""" |
| 44 | return ''.join(random.choices(string.ascii_letters + string.digits, k=length)) |
| 45 | |
| 46 | |
| 47 | def random_column_name() -> str: |
no outgoing calls
no test coverage detected