mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-30 19:41:24 +00:00
Make KeyCrypterScrypt.randomSalt() public.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user