Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator interface { // New generates a random UUID according to RFC 4122 New() (string, error) }
Generator generates UUID strings
type ReaderGenerator ¶
type ReaderGenerator struct { // Reader is the entropy source for the UUID generator Reader io.Reader }
ReaderGenerator generates UUID strings using an IO reader
func NewCryptoGenerator ¶
func NewCryptoGenerator() *ReaderGenerator
NewCryptoGenerator returns new cryptographic UUID generator
Click to show internal directories.
Click to hide internal directories.