_rand16seed always starts at 0, so any patterns using random8() or random16() look the same after a reset.
I've worked around this doing
for (uint16_t i = analogRead(A0)+analogRead(A1); i--; i>0)
ws2812fx.random8();
(i.e. calling random8() manually, a somewhat random amount of times), but that is.. hacky :)
Would be great if there was a void setRandomSeed(uint16_t seed),
and maybe even a void setRandomSeed() which sets the seed based on micros() and some analogRead(...)s.
_rand16seed
always starts at0
, so any patterns usingrandom8()
orrandom16()
look the same after a reset.I've worked around this doing
(i.e. calling
random8()
manually, a somewhat random amount of times), but that is.. hacky :)Would be great if there was a
void setRandomSeed(uint16_t seed)
, and maybe even avoid setRandomSeed()
which sets the seed based onmicros()
and someanalogRead(...)
s.