3
0
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:
Mike Hearn 2015-01-17 15:01:52 +01:00
parent 3456e896ec
commit 101ad83906

View File

@ -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;