mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-11 17:55:53 +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 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];
|
byte[] salt = new byte[SALT_LENGTH];
|
||||||
secureRandom.nextBytes(salt);
|
secureRandom.nextBytes(salt);
|
||||||
return salt;
|
return salt;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user