package uuid

import "go.mongodb.org/mongo-driver/internal/uuid"

Index

Types

type UUID

type UUID [16]byte

UUID represents a UUID.

func New

func New() (UUID, error)

New returns a random UUIDv4. It uses a global pseudo-random number generator in randutil at package initialization.

New should not be used to generate cryptographically-secure random UUIDs.

Source Files

uuid.go

Version
v1.10.0-beta1
Published
May 31, 2022
Platform
linux/amd64
Imports
2 packages
Last checked
3 minutes ago

Tools for package owners.