Last active
January 2, 2019 03:44
-
-
Save sontuphan/b70bafb0e21fcef401a551d7b0120b31 to your computer and use it in GitHub Desktop.
This file contains 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
// 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