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.

func (UUID) String

func (uuid UUID) String() string

Source Files

uuid.go

Version
v1.17.3 (latest)
Published
Feb 25, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
15 hours ago

Tools for package owners.