ChaCha.Seed Struct
The seed for ChaCha. Consists of a key and a stream id.
Namespace
RandN.Rngs
Containing Type
ChaCha
Base Types
  • object
  • ValueType
ChaCha.Seed
ValueType
object

Syntax

public readonly struct ChaCha.Seed : ValueType

Constructors

NameSummary
Seed(ReadOnlySpan<uint>, ulong)Constructs a new ChaCha seed from a key and a stream id.
Seed(ReadOnlySpan<uint>)Constructs a new ChaCha seed from a key with a stream id of 0.

Properties

NameProperty TypeSummary
KeyReadOnlyMemory<uint>
The 32 byte key for ChaCha20.
Streamulong
The stream id.