mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-07 15:50:57 +03:00
minor
This commit is contained in:
@@ -58,10 +58,9 @@ public class BouncyCastleRandom
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private final RandomGenerator random;
|
private final RandomGenerator random = new VMPCRandomGenerator();
|
||||||
|
|
||||||
public BouncyCastleRandom() {
|
public BouncyCastleRandom() {
|
||||||
random = new VMPCRandomGenerator();
|
|
||||||
byte[] seed = new SecureRandom().generateSeed(8);
|
byte[] seed = new SecureRandom().generateSeed(8);
|
||||||
random.addSeedMaterial(seed);
|
random.addSeedMaterial(seed);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,11 +58,7 @@ public class JCERandom
|
|||||||
}
|
}
|
||||||
|
|
||||||
private byte[] tmp = new byte[16];
|
private byte[] tmp = new byte[16];
|
||||||
private SecureRandom random = null;
|
private final SecureRandom random = new SecureRandom();
|
||||||
|
|
||||||
public JCERandom() {
|
|
||||||
random = new SecureRandom();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fill the given byte-array with random bytes from this PRNG.
|
* Fill the given byte-array with random bytes from this PRNG.
|
||||||
|
|||||||
Reference in New Issue
Block a user