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.12.0-prerelease
- Published
- Nov 3, 2022
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- now –
Tools for package owners.