def length_range_for_entropy(entropy):
    """Returns length range to sample from for given entropy."""
    min_length = 3
    max_length = min_length + int(entropy / 2)
    return min_length, max_length
