mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 04:53:29 +01:00
ensure that SingleRandom seeds are never zero
This commit is contained in:
parent
8555fc2499
commit
edcaa84a2b
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ namespace MLEM.Misc {
|
|||
seed ^= (seed << 17);
|
||||
seed *= 928511849;
|
||||
seed ^= (seed << 12);
|
||||
return seed;
|
||||
return seed + 3;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue