Documentation ¶
Overview ¶
Package cryptorand provides a *rand.Rand implementation backed by the standard library's 'crypto/rand' package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Source ¶
type Source struct{}
Source implements math/rand.Source and math/rand.Source64, backed by the crypto/rand package.
func NewSource ¶
func NewSource() *Source
NewSource returns an initialized crypto/rand-backed implementation of math/rand.Source.
func (*Source) Int63 ¶
Int63 returns a non-negative cryptographically secure random 63-bit integer as an int64.
Click to show internal directories.
Click to hide internal directories.