uuid

package
v0.0.0-...-bafb2d1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 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