prng.collector.SystemEntropy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SecurePRNG-core Show documentation
Show all versions of SecurePRNG-core Show documentation
The core random number generators
package prng.collector;
import prng.SystemRandom;
import prng.config.Config;
/**
* Collect entropy from the combined system secure random number generators.
*
* @author Simon Greatrix on 02/04/2018.
*/
public class SystemEntropy extends EntropyCollector {
public SystemEntropy(Config config) {
super(config, 50);
}
@Override
protected boolean initialise() {
return true;
}
@Override
protected void runImpl() {
byte[] data = SystemRandom.getSeed(256);
post(data);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy