Loading keystore/java/android/security/keystore2/KeyStoreCryptoOperationUtils.java +1 −3 Original line number Diff line number Diff line Loading @@ -40,7 +40,6 @@ import java.security.InvalidKeyException; import java.security.SecureRandom; import java.util.ArrayList; import java.util.List; import java.util.Random; /** * Assorted utility methods for implementing crypto operations on top of KeyStore. Loading @@ -50,7 +49,6 @@ import java.util.Random; abstract class KeyStoreCryptoOperationUtils { private static volatile SecureRandom sRng; private static final Random sRandom = new Random(); private KeyStoreCryptoOperationUtils() {} Loading Loading @@ -213,7 +211,7 @@ abstract class KeyStoreCryptoOperationUtils { } else { // Keystore won't give us an operation challenge if the operation doesn't // need user authorization. So we make our own. return sRandom.nextLong(); return getRng().nextLong(); } } } Loading
keystore/java/android/security/keystore2/KeyStoreCryptoOperationUtils.java +1 −3 Original line number Diff line number Diff line Loading @@ -40,7 +40,6 @@ import java.security.InvalidKeyException; import java.security.SecureRandom; import java.util.ArrayList; import java.util.List; import java.util.Random; /** * Assorted utility methods for implementing crypto operations on top of KeyStore. Loading @@ -50,7 +49,6 @@ import java.util.Random; abstract class KeyStoreCryptoOperationUtils { private static volatile SecureRandom sRng; private static final Random sRandom = new Random(); private KeyStoreCryptoOperationUtils() {} Loading Loading @@ -213,7 +211,7 @@ abstract class KeyStoreCryptoOperationUtils { } else { // Keystore won't give us an operation challenge if the operation doesn't // need user authorization. So we make our own. return sRandom.nextLong(); return getRng().nextLong(); } } }