import string
import secrets


def rand_token(length: int = 25,
               chars: str = string.ascii_uppercase + string.digits) -> str:
    """
    Generate a random token. Does not check for duplicates yet.

    A length of 25 should give us 8.082812775E38 keys.

    length: - length of token to generate
    chars: - characters used in seeding of token
    """
    return "".join(secrets.choice(chars) for i in range(length))