rand library

Random bytes from the operating system's secure source.

import 'package:darkbio_crypto/rand.dart' as rand;

void example() {
  final nonce = rand.bytes(32);
  assert(nonce.length == 32);
}

Functions

bytes(int length) → Uint8List
Creates a buffer of length bytes filled with randomness.