Documentation
¶
Overview ¶
Package rand implements a cryptographically secure pseudorandom number generator.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Reader io.Reader = &bufferedReader{r: bufio.NewReader(&reader{})}
Reader is the default reader.
Functions ¶
func Init ¶
func Init() error
Init can be called to make sure /dev/urandom is pre-opened on kernels that do not support getrandom(2).
Types ¶
type RNG ¶
RNG exposes convenience functions based on a cryptographically secure io.Reader.
Click to show internal directories.
Click to hide internal directories.