package randutil
import "go.mongodb.org/mongo-driver/internal/randutil"
Package randutil provides common random number utilities.
Index ¶
Functions ¶
func NewLockedRand ¶
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 ¶
Path | Synopsis |
---|---|
internal/randutil/rand | Package rand implements pseudo-random number generators. |
- Version
- v1.10.5
- Published
- Dec 6, 2022
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 7 minutes ago –
Tools for package owners.