Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Source source
Source is a cryptographically secure random number source that satisfies the math/rand.Source and math/rand.Source64 interfaces, which are required to make a new math/rand.Rand instance that uses crypto/rand. See also New, for a new Rand instance using this source.
Functions ¶
func New ¶
func New() *rand.Rand
New creates a new math/rand.Rand number generator that uses the cryptographically secure source of randomness. This is helpful for the versatile methods like Intn, Float64, etc., which crypto/rand does not provide. If you just need bytes, use the standard library's crypto/rand.Read.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.