Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSeed ¶
func GenerateSeed() (optimus.Optimus, error)
GenerateSeed will generate a valid optimus object which can be used for encoding and decoding values.
NOTE: You must download and place the list of prime numbers into directory "data". See: github.com/pjebs/optimus-go-primes (493+MB).
If this repo is too large, then use RandN(50) to select a file from http://primes.utm.edu/lists/small/millions/ and then Rand(1000000) to choose a line to extract a prime.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.