Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rng ¶
type Rng struct {
// contains filtered or unexported fields
}
Rng implements a simple determinisic random number generator. Starting from an initial entropy, nonce, and personalizationString, it utilizes HMAC_DRBG construct as per NIST Special Publication 800-90A to produce a stream of random uint64 integers.
func NewRng ¶
NewRng creates a new psudo-random generator, using the given seeds as the initial random source.
func (*Rng) RandUint64 ¶
RandUint64 returns the next 64-bit unsigned random integer produced by this generator.
Click to show internal directories.
Click to hide internal directories.