package randutil

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

Package randutil provides common random number utilities.

Index

Functions

func NewLockedRand

func NewLockedRand() *xrand.Rand

NewLockedRand returns a new "x/exp/rand" pseudo-random number generator seeded with a cryptographically-secure random number. It is safe to use from multiple goroutines.

Source Files

randutil.go

Directories

PathSynopsis
internal/randutil/randPackage rand implements pseudo-random number generators.
Version
v1.10.1-cloud
Published
Aug 3, 2022
Platform
linux/amd64
Imports
4 packages
Last checked
2 minutes ago

Tools for package owners.