mongo-drivergo.mongodb.org/mongo-driver/internal/randutil Index | Files

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

Version
v1.15.0-alpha1
Published
Apr 2, 2024
Platform
js/wasm
Imports
4 packages
Last checked
6 seconds ago

Tools for package owners.