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.11.3
Published
Mar 17, 2023
Platform
js/wasm
Imports
4 packages
Last checked
1 minute ago

Tools for package owners.