random static method

Uint8List random(
  1. int len
)

Implementation

static Uint8List random(int len) {
  final bytes = SafeBuffer.alloc(len);
  crypto.fillRandomBytes(bytes);
  return bytes;
}