Add more randomness to the answer
This commit is contained in:
parent
33e04d22dd
commit
45faf97cea
@ -55,7 +55,9 @@ public class PadlockImpl {
|
||||
List<Integer> answer = new ArrayList<>(numpadSize);
|
||||
for (int i = 0; i < numpadSize; i++)
|
||||
answer.add(i);
|
||||
for (int i = 0; i < numpadSize / 2; i++) {
|
||||
Collections.shuffle(answer);
|
||||
}
|
||||
this.correctPasscode = answer.toArray(new Integer[0]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user