rand

package
v1.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BITS_PER_BYTE    = 8
	BLOCK_SIZE_WORDS = 2
	WORD_SIZE        = 8
	BLOCK_SIZE       = BLOCK_SIZE_WORDS * WORD_SIZE
	KEY_SIZE         = 32
	SEED_SIZE        = KEY_SIZE + BLOCK_SIZE
)

Variables

This section is empty.

Functions

func CreatePRNG

func CreatePRNG(seed []byte) (io.Reader, error)

* Creates a cryptographically secure pseudo-random number generator * initialized to a 384 bit seed. * * The provided seed must be exactly 48 bytes long.

func SystemPRNG

func SystemPRNG() io.Reader

* Returns the operating system entropy source.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL