negative number has 1 lower range
This commit is contained in:
parent
9bb6ffeb65
commit
0b1b098192
@ -126,6 +126,7 @@ export const generateRewardSeed = (): bigint => {
|
||||
let seed = (BigInt(hiDword) << 32n) | BigInt(loDword);
|
||||
if (Math.random() < 0.5) {
|
||||
seed *= -1n;
|
||||
seed -= 1n;
|
||||
}
|
||||
return seed;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user