We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cd67fe commit 4537259Copy full SHA for 4537259
contracts/standard/rng/BlockhashRNGFallbackRange.sol
@@ -29,7 +29,7 @@ contract BlockHashRNGFallback is BlockHashRNG {
29
* @param _block Block the random number is linked to.
30
*/
31
function saveRN(uint _block) public {
32
- if (_block < block.number && randomNumber[_block] == 0) {// If the random number is not already set and can be.
+ if (_block < block.number && randomNumber[_block] == 0) { // If the random number is not already set and can be.
33
// The below equation is valid for all cases (last 256 blockhash of blocks or even earlier than that).
34
randomNumber[_block] = uint(blockhash((block.number-1) - (block.number-1-_block)%256));
35
}
0 commit comments