uuid

package
v0.0.0-...-9a3a00f Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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

func (*ReaderGenerator) New

func (u *ReaderGenerator) New() (string, error)

New generates a random UUID according to RFC 4122

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL