Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. A linear feedback
shift register is a shift register whose input bit is a linear function
of its previous state. The most commonly used linear function of single
bits is XOR. Thus, an LFSR is most often a shift register whose input
bit is driven by the exclusive-or of some bits of the overall shift
register value. The initial value of the LFSR is called the seed, and
because the operation of the register is deterministic, the stream of
values produced by the register is completely determined by its current
state. Likewise, because the register has a finite number of possible
states, it must eventually enter a repeating cycle. However, an LFSR
with a well-chosen feedback function can produce a sequence of bits
which appears random and which has a very long cycle.