fillBytesWithSecureRandomNumbers function

void fillBytesWithSecureRandomNumbers(
  1. Uint8List bytes, {
  2. Random? random,
})

Implementation

void fillBytesWithSecureRandomNumbers(Uint8List bytes, {Random? random}) {
  random ??= _defaultSecureRandom;
  for (var i = 0; i < bytes.length; i++) {
    bytes[i] = random.nextInt(256);
  }
}