setupRandom static method
Implementation
static void setupRandom(CbGenerateRandom? random, {bool seal = false}) {
_checkNotSealed('setupRandom');
if (random == null) {
_generateRandom = (length) {
return prng.nextBytes(length);
};
} else {
_generateRandom = random;
}
if (seal) QuickCrypto.seal();
}