Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WordList = [][]string{}/* 256 elements not displayed */
WordList contains the mapping of PGP words to be used as parts of the Wormhole Code
Functions ¶
func GetEvenWord ¶
GetEvenWord returns the word in the even index at the specified index. Will panic if out of range
func GetOddWord ¶
GetOddWord returns the word in the odd index at the specified index. Will panic if out of range
func GetRandomEvenWord ¶
func GetRandomEvenWord() string
GetRandomEvenWord returns an even word using the crypto/rand stream
func GetRandomOddWord ¶
func GetRandomOddWord() string
GetRandomOddWord returns an odd word using the crypto/rand stream
func GetRandomWordSet ¶
func GetRandomWordSet() []string
GetRandomWordSet returns a random entry in the word set using crypto/rand
func GetRandomWords ¶
GetRandomWords returns a slice of strings up to the size n filled with random words from the list, alternating between odd/even choices
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.