nextBytes method

Uint8List nextBytes(
  1. int length
)

Generate a list of random 8-bit bytes of size length

Implementation

@pragma('vm:prefer-inline')
Uint8List nextBytes(int length) {
  var data = Uint8List(length);
  fill(data.buffer);
  return data;
}