nextBytes method

  1. @override
Uint8List nextBytes(
  1. int count
)
override

Get a list of bytes of arbitrary length.

Implementation

@override
Uint8List nextBytes(int count) {
  final list = Uint8List(count);

  for (var i = 0; i < list.length; i++) {
    list[i] = nextUint8();
  }

  return list;
}