Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Hash algorithm is Keccak256
var s = Math.floor((Math.random() * 1000000000) + 1); // s = 830178382
var selection = ‘rock’;
var combination = selection + s; // combination = ‘rock830178382’
var hashOfCombination = keccak256(combination);
// hashOfCombination = 4d49bb261ecb887e152051da601d028e070635d24da07da2828fca8fecedee50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.