negative number has 1 lower range
All checks were successful
Build / build (push) Successful in 57s
Build / build (pull_request) Successful in 1m33s

This commit is contained in:
Sainan 2025-04-25 08:18:12 +02:00
parent 9bb6ffeb65
commit 0b1b098192

View File

@ -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;
};