newSecretKeySync method

SecretKey newSecretKeySync()

Synchronous version of newSecretKey.

Implementation

SecretKey newSecretKeySync() {
  return SecretKeyData.random(
    length: secretKeyLength,
    random: random,
  );
}