Corrected to negate LFSR using bitwise NOT.