def _get_deterministic_value_for_table_name(table_name, max_value):
    """
    For a given table_name, returns hash of the table_name limited by max_value.
    """
    return hash(table_name) % max_value