generateMnemonic static method

String generateMnemonic({
  1. int strength = 128,
})

Implementation

static String generateMnemonic({int strength = 128}) {
  assert(strength % 32 == 0);

  final entropy = _randomBytes(strength ~/ 8);
  return entropyToMnemonic(hex.encode(entropy));
}