mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 16:49:40 +01:00
GV2 database.
This commit is contained in:
committed by
Greyson Parrelli
parent
640c82d517
commit
9e6cca1cd0
@@ -428,13 +428,13 @@ public class Util {
|
||||
}
|
||||
|
||||
public static byte[] getSecretBytes(int size) {
|
||||
byte[] secret = new byte[size];
|
||||
getSecureRandom().nextBytes(secret);
|
||||
return secret;
|
||||
return getSecretBytes(new SecureRandom(), size);
|
||||
}
|
||||
|
||||
public static SecureRandom getSecureRandom() {
|
||||
return new SecureRandom();
|
||||
public static byte[] getSecretBytes(@NonNull SecureRandom secureRandom, int size) {
|
||||
byte[] secret = new byte[size];
|
||||
secureRandom.nextBytes(secret);
|
||||
return secret;
|
||||
}
|
||||
|
||||
public static int getDaysTillBuildExpiry() {
|
||||
|
||||
Reference in New Issue
Block a user