Skip to content

Commit 3be95a6

Browse files
committed
Fix blank area issue with Twinkle
1 parent 3bc728e commit 3be95a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wled00/FX.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,13 +672,13 @@ uint16_t mode_twinkle(void) {
672672
if (SEGENV.aux0 >= maxOn)
673673
{
674674
SEGENV.aux0 = 0;
675-
SEGENV.aux1 = hw_random(); //new seed for our PRNG
675+
SEGENV.aux1 = hw_random16(); //new seed for our PRNG (16-bit for better coverage)
676676
}
677677
SEGENV.aux0++;
678678
SEGENV.step = it;
679679
}
680680

681-
unsigned PRNG16 = SEGENV.aux1;
681+
uint16_t PRNG16 = SEGENV.aux1;
682682

683683
for (unsigned i = 0; i < SEGENV.aux0; i++)
684684
{

0 commit comments

Comments
 (0)