23 #ifndef CRYPTO_NOISESOURCE_H
24 #define CRYPTO_NOISESOURCE_H
36 virtual void stir() = 0;
39 virtual void output(
const uint8_t *data,
size_t len,
unsigned int credit);
NoiseSource()
Constructs a new random noise source.
virtual void stir()=0
Stirs entropy from this noise source into the global random number pool.
Abstract base class for random noise sources.
virtual void output(const uint8_t *data, size_t len, unsigned int credit)
Called from subclasses to output noise to the global random number pool.
virtual ~NoiseSource()
Destroys this random noise source.
virtual bool calibrating() const =0
Determine if the noise source is still calibrating itself.