cryptoStreamKeygen static method

Uint8List cryptoStreamKeygen()

Implementation

static Uint8List cryptoStreamKeygen() {
  final _k = calloc<Uint8>(cryptoStreamKeybytes);
  try {
    _cryptoStream.crypto_stream_keygen(_k);
    return _k.toList(cryptoStreamKeybytes);
  } finally {
    calloc.free(_k);
  }
}