mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 07:10:53 +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() {
|
||||
random = new VMPCRandomGenerator();
|
||||
byte[] seed = new SecureRandom().generateSeed(8);
|
||||
random.addSeedMaterial(seed);
|
||||
}
|
||||
|
||||
@@ -58,11 +58,7 @@ public class JCERandom
|
||||
}
|
||||
|
||||
private byte[] tmp = new byte[16];
|
||||
private SecureRandom random = null;
|
||||
|
||||
public JCERandom() {
|
||||
random = new SecureRandom();
|
||||
}
|
||||
private final SecureRandom random = new SecureRandom();
|
||||
|
||||
/**
|
||||
* Fill the given byte-array with random bytes from this PRNG.
|
||||
|
||||
Reference in New Issue
Block a user