You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contracts/standard/rng/BeaconRNG.sol
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ import "./RNG.sol";
16
16
contractBeaconRNGisRNG {
17
17
18
18
uintpublic constant LOOKAHEAD =132; // Number of blocks that has to pass before obtaining the random number. 4 epochs + 4 slots, according to EIP-4399.
19
-
uintpublic 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
+
uintpublic 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.
20
20
21
21
RNG public blockhashRNG; // Address of blockhashRNG to fall back on.
22
22
mapping (uint=>uint) public randomNumber; // randomNumber[_requestedBlock] is the random number for this requested block, 0 otherwise.
0 commit comments