diff --git a/main/gbx/gbx_math.c b/main/gbx/gbx_math.c index 3136ac1b3..fba774b0f 100644 --- a/main/gbx/gbx_math.c +++ b/main/gbx/gbx_math.c @@ -54,6 +54,9 @@ static void GFSR_init(uint seed) int i = 0, j; uint t = seed; + if (t == 0) + t = (uint)-1; + do { t ^= (t >> 5) ^ (t << 1);