Documentation
¶
Overview ¶
Package rand is a helper package wrapping std lib functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Seed ¶
type Seed [32]byte
Seed is a chacha8 randomness seed.
func NewSeed ¶
NewSeed creates a certain seed from 32-byte long string. NewSeed panics if s isn't 32-byte long.
func NewSeedRand ¶
func NewSeedRand() Seed
NewSeedRand creates a new random seed using `crypto/rand.Read`.
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source is a randomness source.
func NewSourceChaCha8 ¶
NewSourceChaCha8 returns a chacha8 based randomness source.
Click to show internal directories.
Click to hide internal directories.