We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6952b7f commit 3934f2eCopy full SHA for 3934f2e
internal/words/words.go
@@ -13,6 +13,10 @@ import (
13
// - 5-char alphabet component: 45M
14
// - ~2800 words, picking 2 at a time (ordered, permutation): 7.5M
15
// - 45M * 7.5M ~= 340T
16
+//
17
+// NB: A seed will generate the same return value each time. However,
18
+// if the word list or charset is changed below, then strings
19
+// generated after that will likely be different given that same seed.
20
func WordsAndEntropy(suffix, seedString string) string {
21
digest := sha256.Sum256([]byte(seedString))
22
charset := "bcdfghjkmnpqrstvwxyz23456789"
0 commit comments