import random


def random_alter_crc(test_case=None):
    """Choose a random bool for alter_crc."""
    if test_case:
        if test_case.get("crc"):
            return True
        else:
            return False
    else:
        return random.random() < 0.1