EntropySource
Class used to accumulate the poll results of EntropySources
Initialize an EntropyAccumulator
bool delegate(const(ubyte)*, size_t len, double) accum | a delegate to send the bytes and entropy value |
Get a cached I/O buffer (purely for minimizing allocation overhead to polls)
size_t size | requested size for the I/O buffer |
Add entropy to the accumulator
void* bytes | the input bytes |
size_t length | specifies how many bytes the input is |
double entropy_bits_per_byte | is a best guess at how much entropy per ubyte is in this input |
Add entropy to the accumulator
T v | is some value |
double entropy_bits_per_byte | is a best guess at how much entropy per ubyte is in this input |