Skip to content

Instantly share code, notes, and snippets.

@CoolCatsNFTPublic
Created December 17, 2021 13:40
Show Gist options
  • Save CoolCatsNFTPublic/97a4d8328e18e43e96786e9c8c7d46c8 to your computer and use it in GitHub Desktop.
Save CoolCatsNFTPublic/97a4d8328e18e43e96786e9c8c7d46c8 to your computer and use it in GitHub Desktop.
Quick and dirty random number
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