Created
December 17, 2021 13:40
-
-
Save CoolCatsNFTPublic/97a4d8328e18e43e96786e9c8c7d46c8 to your computer and use it in GitHub Desktop.
Quick and dirty random number
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function dirtyRNG() public view return(uin256) { | |
return uint256(keccak256(abi.encodePacked(msg.sender, block.timestamp)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment