I'm posting this on the discussion forum because I'm not sure that the
implementations is wrong.
In the description of the LFSR class it is stated that the class implements an
LFSR in Fibonacci form. I looked this up () and the description states that
the output bit is the rightmost bit of the shift register. I've checked other
descriptions and they agree.
In the LFSR shift() function (line 126 in sequence.h) the output bit is the
feedback bit. I suspect this produces the same pattern, but with a different
phase.
I'm posting this on the discussion forum because I'm not sure that the
implementations is wrong.
In the description of the LFSR class it is stated that the class implements an
LFSR in Fibonacci form. I looked this up () and the description states that
the output bit is the rightmost bit of the shift register. I've checked other
descriptions and they agree.
In the LFSR shift() function (line 126 in sequence.h) the output bit is the
feedback bit. I suspect this produces the same pattern, but with a different
phase.
I'd welcome opinions.
Peter
: http://en.wikipedia.org/wiki/Linear_feedback_shift_register#Fibonacci_LFSRs