cryptoRNG static method

Uint8List cryptoRNG()

Crypto-Strong RNG. All platforms, unknown speed, cryptographically strong (theoretically)

Implementation

static Uint8List cryptoRNG() {
  final b = Uint8List(16);

  for (var i = 0; i < 16; i++) {
    b[i] = _secureRandom.nextInt(256);
  }

  return b;
}