chore: improve distribution of rewardSeed #1831
@ -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