39 void setState(
size_t newState) { lfsr=newState;};
This class implements a Linear Feedback Shift Register (in software)
void setState(size_t newState)
Set the internal lfsr state. Note 0 is the lock-up state.
void setMaskPeriod(unsigned int newMask)
Set the mask to use such that the period is 2^n-1. 3 is minimum 60 is maximum.
size_t clock()
Get a value from the shift register, and advance.
bool verifyTable(size_t maxLen=0)
Check the validity of the table.