ChaChaRandom constructor
ChaChaRandom({})
Implementation
ChaChaRandom({
this.rounds = defaultRounds,
this.maxBlocksBeforeReseed = defaultMaxBlocksBeforeReseed,
this.maxDurationBeforeReseed = defaultMaxDurationBeforeReseed,
}) : _seedForDeterministicSequence = null,
super.constructor() {
if (maxBlocksBeforeReseed < 0 || maxBlocksBeforeReseed > _bit32) {
throw ArgumentError.value(
maxBlocksBeforeReseed,
' maxBlocksBeforeReseed',
);
}
}