randomBytes method

  1. @override
Uint8List randomBytes(
  1. int length
)
override

Implementation

@override
Uint8List randomBytes(int length) {
  final Uint8List random = Uint8List(length);
  for (int i = 0; i < length; i++) {
    random[i] = _random.nextInt(256);
  }
  return random;
}