generateRandomness static method
Fills target
with random bytes.
An optional random
source can be provided, otherwise a default instance
of Random.secure will be used.
Implementation
static void generateRandomness(Uint8List target, [Random? random]) {
random ??= _fallbackRandom;
for (var i = 0; i < target.length; i++) {
target[i] = random.nextInt(1 << 8);
}
}