diff --git a/android/src/main/java/im/status/ethereum/keycard/SmartCardSecrets.java b/android/src/main/java/im/status/ethereum/keycard/SmartCardSecrets.java index 7737f92..b471fb0 100644 --- a/android/src/main/java/im/status/ethereum/keycard/SmartCardSecrets.java +++ b/android/src/main/java/im/status/ethereum/keycard/SmartCardSecrets.java @@ -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]); }