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 and FreeBSD, Reader uses getrandom(2) if available, /dev/urandom otherwise. On OpenBSD, Reader uses getentropy(2). On other Unix-like systems, Reader reads from /dev/urandom. On Windows systems, Reader uses the CryptGenRandom API. On Wasm, Reader uses the Web Crypto API.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.