Skip to content

Commit e1718e5

Browse files
fix(RN): change ERROR limit to 32
1 parent c49bc90 commit e1718e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/standard/rng/BeaconRNG.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import "./RNG.sol";
1616
contract BeaconRNG is RNG {
1717

1818
uint public constant LOOKAHEAD = 132; // Number of blocks that has to pass before obtaining the random number. 4 epochs + 4 slots, according to EIP-4399.
19-
uint public constant ERROR = 20; // Number of blocks after which the lookahead gets reset, so eligible blocks after lookahead don't go long distance, to avoid a possiblity for manipulation.
19+
uint public constant ERROR = 32; // Number of blocks after which the lookahead gets reset, so eligible blocks after lookahead don't go long distance, to avoid a possiblity for manipulation.
2020

2121
RNG public blockhashRNG; // Address of blockhashRNG to fall back on.
2222
mapping (uint => uint) public randomNumber; // randomNumber[_requestedBlock] is the random number for this requested block, 0 otherwise.

0 commit comments

Comments
 (0)