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 = cryptoRand.Reader
Reader is the standard crypto/rand.Reader, re-exported for convenience
Functions ¶
func Intn ¶
Intn returns, as an int, a non-negative strongly random number in [0,n). It panics if n <= 0.
func SeedFromBytes ¶
SeedFromBytes calculates a weak 64 bit hash from the given byte slice, suitable for use a predictable random seed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.