prng

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SeedablePRNG

type SeedablePRNG interface {
	io.Reader
	// Reset the internal state of the PRNG.
	Seed(seed, salt []byte) error
	// Generate a new PRNG of the same type with the provided seed and salt.
	New(seed, salt []byte) (SeedablePRNG, error)
}

SeedablePRNG represents a seedable pseudo-random number generator.

Directories

Path Synopsis
Package csprng defines interfaces and helpers for cryptographically secure PRNGs, including a threadsafe wrapper.
Package csprng defines interfaces and helpers for cryptographically secure PRNGs, including a threadsafe wrapper.
fkechacha20
Package fkechacha20 implements a cryptographically-secure pseudo-random number generator based on a fork of the ChaCha20 with fast key erasure.
Package fkechacha20 implements a cryptographically-secure pseudo-random number generator based on a fork of the ChaCha20 with fast key erasure.
nist
Package nist implements a cryptographically-secure pseudo-random number generator i.e Deterministic Random Bit Generator (DRBG) definition of NIST spec, based on AES (AES128 or AES256) as block cipher in counter mode.
Package nist implements a cryptographically-secure pseudo-random number generator i.e Deterministic Random Bit Generator (DRBG) definition of NIST spec, based on AES (AES128 or AES256) as block cipher in counter mode.
rfc8937
Package rfc8937 provides a randomness wrapper that ties the security of the CSPRNG to a deterministic signing key.
Package rfc8937 provides a randomness wrapper that ties the security of the CSPRNG to a deterministic signing key.
Package pcg provides a seedable PCG-based PRNG for tests and non-cryptographic randomness.
Package pcg provides a seedable PCG-based PRNG for tests and non-cryptographic randomness.

Jump to

Keyboard shortcuts

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