words

package
Version: v0.0.0-...-892988b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2019 License: MIT Imports: 1 Imported by: 0

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

func GetEvenWord(ind int) string

GetEvenWord returns the word in the even index at the specified index. Will panic if out of range

func GetOddWord

func GetOddWord(ind int) string

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

func GetRandomWords(n int) []string

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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL