import "v.io/v23/uniqueid"
Package uniqueid defines functions that are likely to generate globally unique identifiers. We want to be able to generate many Ids quickly, so we make a time/space tradeoff. We reuse the same random data many times with a counter appended. Note: these Ids are NOT useful as a security mechanism as they will be predictable.
nolint:golint
Valid returns true if the given Id is valid.
An Id is a likely globally unique identifier.
Random produces a new probably unique identifier using the RandomGenerator.
type RandomGenerator struct {
// contains filtered or unexported fields
}
A RandomGenerator can generate random Ids. The zero value of RandomGenerator is ready to use.
func (g *RandomGenerator) NewID() (Id, error)
NewId produces a new probably unique identifier.
Package uniqueid imports 6 packages (graph) and is imported by 54 packages. Updated 2020-10-24. Refresh now. Tools for package owners.