generatePassword method
Implementation
String generatePassword() {
var values =
List<int>.generate(PASSWORD_LENGTH, (i) => _random.nextInt(256));
return base64Url.encode(values).substring(0, PASSWORD_LENGTH);
}
String generatePassword() {
var values =
List<int>.generate(PASSWORD_LENGTH, (i) => _random.nextInt(256));
return base64Url.encode(values).substring(0, PASSWORD_LENGTH);
}