nextBytes method

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

Get a list of bytes of arbitrary length.

Implementation

@override
Uint8List nextBytes(int count) {
  if (count > 1048576) {
    throw ArgumentError(
        'Fortuna PRNG cannot generate more than 1MB of random data per invocation');
  }

  return _prng.nextBytes(count);
}