File size: 175 Bytes
a5784e9
 
 
 
 
 
1
2
3
4
5
6
7
import random


def random_id(length: int = 24) -> str:
    charset = "abcdefghijklmnopqrstuvwxyz0123456789"
    return "".join(random.choice(charset) for _ in range(length))