ChaCha.Factory12 Struct
Produces ChaCha12 RNGs and seeds.
Namespace
RandN.Rngs
Containing Type
ChaCha
Interfaces
Base Types
  • object
  • ValueType
ChaCha.Factory12
ValueType
object
IReproducibleRngFactory<ChaCha, ChaCha.Seed>

Syntax

public readonly struct ChaCha.Factory12 : ValueType, IReproducibleRngFactory<ChaCha, ChaCha.Seed>

Methods

NameReturn ValueSummary
Create(ChaCha.Seed)ChaCha
Creates a new TRng using the specified seed.
CreateSeed<TSeedingRng>(TSeedingRng)ChaCha.Seed
Creates a seed of type TSeed, that can then be used in the Create(TSeed) method to create a TRng.

Extension Methods

NameValueSummary
Create<ChaCha, ChaCha.Seed, TSeedingRng>(TSeedingRng)TRng
Creates a new TRng using a seed created from seedingRng.