Navigation
API > API/Runtime > API/Runtime/Core
See https://en.wikipedia.org/wiki/Linear-feedback_shift_register This implements maximal-length feedback polynomials LFSR for N bits in [2, 12].
| Name | FLinearFeedbackShiftRegister |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Math/LFSR.h |
| Include Path | #include "Math/LFSR.h" |
Syntax
class FLinearFeedbackShiftRegister
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FLinearFeedbackShiftRegister() |
Math/LFSR.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| StartState | const uint32 | Math/LFSR.h | ||
| State | uint32 | Math/LFSR.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
uint32 GetNextValue
(
uint32 N |
LFSR numbers usually only include N^2-1 numbers for N bit. | Math/LFSR.h | |
uint32 GetNextValueWithLast
(
uint32 N |
This function is the same as above. | Math/LFSR.h |