mirror of
https://github.com/D4C1-Labs/Flipper-ARF.git
synced 2026-07-29 00:19:19 +00:00
20 lines
342 B
C++
20 lines
342 B
C++
// #include "FixedMath.h"
|
|
|
|
// static uint16_t xs = 1;
|
|
|
|
// uint16_t Random() {
|
|
// xs ^= xs << 7;
|
|
// xs ^= xs >> 9;
|
|
// xs ^= xs << 8;
|
|
// return xs;
|
|
// }
|
|
|
|
// void SeedRandom() {
|
|
// uint32_t r = furi_hal_random_get();
|
|
// xs = (uint16_t)(r ^ (r >> 16));
|
|
// }
|
|
|
|
// void SeedRandom(uint16_t seed) {
|
|
// xs = seed | 1;
|
|
// }
|