/* This code is part of Freenet. It is distributed under the GNU General
* Public License, version 2 (or at your option any later version). See
* http://www.gnu.org/ for further details of the GPL. */
package freenet.crypt;
/**
* @author amphibian
*
* Not a real RNG at all, just a simple PRNG. Use it for e.g. simulations.
*/
public class DummyRandomSource extends RandomSource {
private static final long serialVersionUID = -1;
public int acceptEntropy(EntropySource source, long data, int entropyGuess) {
return 0;
}
public int acceptTimerEntropy(EntropySource timer) {
return 0;
}
public int acceptTimerEntropy(EntropySource fnpTimingSource, double bias) {
return 0;
}
public int acceptEntropyBytes(EntropySource myPacketDataSource, byte[] buf,
int offset, int length, double bias) {
return 0;
}
public void close() {
}
}