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.11.0
Published
Nov 2, 2022
Platform
js/wasm
Imports
2 packages
Last checked
49 seconds ago

Tools for package owners.