off by one
This commit is contained in:
parent
9c09588b8b
commit
2dc8360b6f
|
@ -72,7 +72,7 @@ public class SmartCardSecrets {
|
|||
|
||||
for (int i = 0; i < length; i++) {
|
||||
char[] src = (i % 2) == 0 ? possibleCharacters : possibleDigits;
|
||||
int idx = random.nextInt(src.length - 1);
|
||||
int idx = random.nextInt(src.length);
|
||||
buffer.append(src[idx]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue