Constructs a new ChaCha seed from a key and a stream id.
- Namespace
- RandN
.Rngs - Containing Type
- ChaCha
.Seed
Syntax
public Seed(ReadOnlySpan<uint> key, ulong stream)
Parameters
Name | Type | Description | |||
---|---|---|---|---|---|
key | ReadOnlySpanChaCha's key. Must have a length of 8. | stream | ulong | ChaCha's 64-bit stream id. | |