Error when exclude list is egal to a collection

Issue #1 resolved
ʕʘ̅͜ʘ̅ʔ repo owner created an issue
test('Test bug with exclude', () {
  final frenchGenerator = PasswordService.latinFrench();
  final excludedChar= CommonPasswordItemList.frenchCharacters;
  final pwd = frenchGenerator.generatePassword(excludeItems: excludedChar);
  print('password: $pwd');
});

RangeError (max): Must be positive and <= 2^32: Not in inclusive range 1..4294967296: 0

dart:math _SecureRandom.nextInt
package:passwd_gen/src/passwd_gen_base.dart 240:27 PasswordService._buildPassword
package:passwd_gen/src/passwd_gen_base.dart 216:19 PasswordService.generatePassword.<fn>
dart:collection _LinkedHashMapMixin.forEach
package:passwd_gen/src/passwd_gen_base.dart 205:30 PasswordService.generatePassword
/home/willy/dev/passwd-gen/test/passwd_gen_test.dart 117:35 main.


Comments (1)

  1. Log in to comment