import secrets


def randbytes(size: int = 32) -> bytes:
    """
    Generate a cryptographically secure random byte sequence of the requested size
    It uses the nacl library to do so.

    Args:
        size(int): the size of the generated byte sequence (default 32)
    Returns:
        a random byte sequence
    """
    return secrets.token_bytes(size)