Create(ChaCha.Seed, uint) Method
Creates a ChaCha RNG using the given seed and number of double rounds.
Namespace
RandN.Rngs
Containing Type
ChaCha

Syntax

public static ChaCha Create(ChaCha.Seed seed, uint doubleRounds)

Parameters

NameTypeDescription
seedChaCha.SeedA seed containing the key and stream.
doubleRoundsuintThe number of double rounds to perform. Half the total number of rounds, ex. ChaCha20 has 10 double rounds and ChaCha8 has 4 double rounds.

Return Value

TypeDescription
ChaCha