mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-07 06:44:16 +00:00
Make KeyCrypterScrypt.randomSalt() public.
This commit is contained in:
parent
3456e896ec
commit
101ad83906
@ -83,7 +83,8 @@ public class KeyCrypterScrypt implements KeyCrypter, Serializable {
|
||||
|
||||
private static final transient SecureRandom secureRandom;
|
||||
|
||||
private static byte[] randomSalt() {
|
||||
/** Returns SALT_LENGTH (8) bytes of random data */
|
||||
public static byte[] randomSalt() {
|
||||
byte[] salt = new byte[SALT_LENGTH];
|
||||
secureRandom.nextBytes(salt);
|
||||
return salt;
|
||||
|
Loading…
Reference in New Issue
Block a user