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
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -18,13 +18,13 @@ contract BeaconRNG {
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
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
-
RNG publicblockhashRNG; // Address of blockhashRNG to fall back on.
21
+
RNG publicblockhashRNGFallback; // Address of blockhashRNGFallback to fall back on.
22
22
23
23
/** @dev Constructor.
24
-
* @param _blockhashRNG The blockhash RNG deployed contract address.
24
+
* @param _blockhashRNGFallback The blockhash RNG deployed contract address.
25
25
*/
26
-
constructor(RNG _blockhashRNG) public {
27
-
blockhashRNG=_blockhashRNG;
26
+
constructor(RNG _blockhashRNGFallback) public {
27
+
blockhashRNGFallback=_blockhashRNGFallback;
28
28
}
29
29
30
30
/**
@@ -40,7 +40,7 @@ contract BeaconRNG {
40
40
function getUncorrelatedRN(uint_block) publicreturns (uint) {
0 commit comments