template <typename CoreType, CoreType generator>

class Lfsr

Defined at line 20 of file ../../zircon/system/ulib/fbl/test/include/fbl/tests/lfsr.h

A templated implementation of a linear feedback shift register for various

core state sizes. With proper selection of the generator, the LFSR will be a

maximum-cycle LFSR meaning that it will cycle through all of its core states

(except for all zeros) exactly once before repeating.

Public Methods

void Lfsr<CoreType, generator> (CoreType initial_core)

Defined at line 24 of file ../../zircon/system/ulib/fbl/test/include/fbl/tests/lfsr.h

template <typename T>
void SetCore (T val)

Defined at line 27 of file ../../zircon/system/ulib/fbl/test/include/fbl/tests/lfsr.h

CoreType PeekCore ()

Defined at line 32 of file ../../zircon/system/ulib/fbl/test/include/fbl/tests/lfsr.h

CoreType GetNext ()

Defined at line 34 of file ../../zircon/system/ulib/fbl/test/include/fbl/tests/lfsr.h