mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 08:22:39 +00:00
Simplify access to SecureRandom
This shouldn't matter at all, but it's more "correct," and shows my age less.
This commit is contained in:
committed by
Greyson Parrelli
parent
8aa185070b
commit
a52c295a38
@@ -264,8 +264,8 @@ public class MasterSecretUtil {
|
||||
}
|
||||
}
|
||||
|
||||
private static byte[] generateSalt() throws NoSuchAlgorithmException {
|
||||
SecureRandom random = SecureRandom.getInstance("SHA1PRNG");
|
||||
private static byte[] generateSalt() {
|
||||
SecureRandom random = new SecureRandom();
|
||||
byte[] salt = new byte[16];
|
||||
random.nextBytes(salt);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user