Documentation ¶
Overview ¶
Package rand implements functions similar to math/rand in the standard library, but on top of a secure random number generator.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Reader = defaultSecureSource
Reader is the standard crypto/rand.Reader with added buffering.
Functions ¶
func Intn ¶
Intn returns, as an int, a cryptographically secure non-negative random number in [0,n). It panics if n <= 0.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.