
prng.collector.HeapEntropy 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.config.Config;
/**
* Collect entropy from how objects are allocated on the heap.
*
* @author Simon Greatrix
*/
public class HeapEntropy extends EntropyCollector {
/**
* Create a collector that uses heap allocation to produce entropy
*
* @param config configuration for this
*/
public HeapEntropy(Config config) {
super(config, 100);
}
@Override
protected boolean initialise() {
return true;
}
@Override
protected void runImpl() {
setEvent(System.identityHashCode(new Object()));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy