Documentation
¶
Overview ¶
Package rand implements a cryptographically secure random number generator.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Reader io.Reader
Reader is a global, shared instance of a cryptographically secure random number generator.
On Linux, FreeBSD, Dragonfly, NetBSD and Solaris, Reader uses getrandom(2) if available, /dev/urandom otherwise. On OpenBSD and macOS, Reader uses getentropy(2). On other Unix-like systems, Reader reads from /dev/urandom. On Windows systems, Reader uses the ProcessPrng API. On JS/Wasm, Reader uses the Web Crypto API. On WASIP1/Wasm, Reader uses random_get from wasi_snapshot_preview1.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.