seed method
Seed the RNG with some entropy (look at package cipher_entropy providing entropy sources).
Implementation
@override
void seed(CipherParameters params) {
if (params is ParametersWithIV<KeyParameter>) {
_autoReseedKeyLength = params.parameters!.key.length;
_delegate.seed(params);
} else if (params is KeyParameter) {
_autoReseedKeyLength = params.key.length;
_delegate.seed(params);
} else {
throw ArgumentError(
'Only types ParametersWithIV<KeyParameter> or KeyParameter allowed for seeding');
}
}