pub fn entropy(data: &[u8]) -> f64
The Shannon entropy of the byte distribution of data, in bits per byte (0 to 8). Empty input has zero entropy.
data