Created
January 28, 2018 21:44
-
-
Save elmariachi111/2ea2da8537052952beccd49c6c82f58e to your computer and use it in GitHub Desktop.
create a iota seed in plain js
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
function createSeed(){ | |
const seedsize = 81; | |
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ9"; | |
let seed = ""; | |
for (var i = 0, n = chars.length; i < seedsize; ++i) { | |
seed += chars.charAt(Math.floor(Math.random() * n)); | |
} | |
return seed; | |
} | |
console.log(createSeed()); |
Author
elmariachi111
commented
Jan 28, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment