Use 0-9 for generated admin pin (derp)
This commit is contained in:
@@ -131,14 +131,14 @@ public class CreateSecurityTokenPinFragment extends Fragment {
|
||||
|
||||
SecureRandom secureRandom = new SecureRandom();
|
||||
// min = 8, we choose 8
|
||||
String adminPin = "" + secureRandom.nextInt(9)
|
||||
+ secureRandom.nextInt(9)
|
||||
+ secureRandom.nextInt(9)
|
||||
+ secureRandom.nextInt(9)
|
||||
+ secureRandom.nextInt(9)
|
||||
+ secureRandom.nextInt(9)
|
||||
+ secureRandom.nextInt(9)
|
||||
+ secureRandom.nextInt(9);
|
||||
String adminPin = "" + secureRandom.nextInt(10)
|
||||
+ secureRandom.nextInt(10)
|
||||
+ secureRandom.nextInt(10)
|
||||
+ secureRandom.nextInt(10)
|
||||
+ secureRandom.nextInt(10)
|
||||
+ secureRandom.nextInt(10)
|
||||
+ secureRandom.nextInt(10)
|
||||
+ secureRandom.nextInt(10);
|
||||
|
||||
return new Passphrase(adminPin);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user