Make BcKeyStoreSpi less predictable
Updated BcKeyStoreSpi to use the default source of entropy
when it generates a salt and an iteration count for PBE.
@@ -141,7 +141,6 @@ public BcKeyStoreSpi(int version)
byte[] salt = new byte[KEY_SALT_SIZE];
- random.setSeed(System.currentTimeMillis());
random.nextBytes(salt);
int iterationCount = MIN_ITERATIONS + (random.nextInt() & 0x3ff);
