1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-22 12:58:33 +01:00

ensure that SingleRandom seeds are never zero

This commit is contained in:
Ell 2022-11-29 23:56:34 +01:00
parent 8555fc2499
commit edcaa84a2b

View file

@ -155,7 +155,7 @@ namespace MLEM.Misc {
seed ^= (seed << 17); seed ^= (seed << 17);
seed *= 928511849; seed *= 928511849;
seed ^= (seed << 12); seed ^= (seed << 12);
return seed; return seed + 3;
} }
} }