#include <random.h>
A 32 bit random number generator. Uses a linear shift feedback register. Polynomial 0x80200003 https://en.wikipedia.org/wiki/Linear-feedback_shift_register
◆ random_lsfr() [1/2]
etl::random_lsfr::random_lsfr |
( |
| ) |
|
|
inline |
Default constructor. Attempts to come up with a unique non-zero seed.
◆ random_lsfr() [2/2]
etl::random_lsfr::random_lsfr |
( |
uint32_t |
seed | ) |
|
|
inline |
Constructor with seed value.
- Parameters
-
◆ initialise()
Initialises the sequence with a new seed value.
- Parameters
-
The documentation for this class was generated from the following file: