cryptoSecretboxKeygen static method

Uint8List cryptoSecretboxKeygen()

Implementation

static Uint8List cryptoSecretboxKeygen() {
  final _k = calloc<Uint8>(cryptoSecretboxKeybytes);
  try {
    _cryptoSecretbox.crypto_secretbox_keygen(_k);
    return _k.toList(cryptoSecretboxKeybytes);
  } finally {
    calloc.free(_k);
  }
}