Skip to content
Verified contractPartialLOL

PRNG

Address0xef967fb8d61ddc193914c0176637a3c952ff9656
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.6.12

 

Same code

Only this contract

 

Details

Compiler
solc 0.6.12+commit.27d51765
Language
solidity
Optimization
Yes, 200 runs
EVM version
istanbul
License
LOL
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
12,524,397
Creation transaction
0x8ad583dd86…018282a6f8

PRNG.sol

// pseudo-random number generator
//SPDX-License-Identifier: LOL™®©
pragma solidity ^0.6.6;
contract PRNG {
 uint randNonce = 0;
 function randMod(uint _modulus) internal returns(uint) {
  randNonce++;  
  return uint(keccak256(abi.encodePacked(now, msg.sender, randNonce))) % _modulus;
 }
}
Compiler settingsShow
{
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": true
  },
  "evmVersion": "istanbul",
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.