def lfsr_validate_one_seed(seed, min_value_shift):
    """Validate seeds for LFSR generators
    
    The LFSR generator components discard a certain number of their lower bits
    when generating each output. The significant bits of their state must not
    all be zero. We must ensure that when seeding the generator.
    
    This is a light-weight validation of state, used from setstate().
    """
    min_value = 1 << min_value_shift
    if seed < min_value:
        seed ^= 4294967295
    return seed
