Documentation ¶
Overview ¶
Package csrand implements the math/rand interface over crypto/rand, along with some utility functions for common random number/byte related tasks.
Not all of the convinience routines are replicated, only those that are immediately useful. The Rand variable provides access to the full math/rand API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Rand is a math/rand instance backed by crypto/rand CSPRNG. Rand = rand.New(csRandSourceInstance) )
Reader is a alias of rand.Reader.
Functions ¶
func Float64 ¶
func Float64() float64
Float64 returns, as a float64, a pesudo random number in [0.0,1.0).
func IntRange ¶
IntRange returns a uniformly distributed int [min, max].
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.