verify_entropy_bounds

Function verify_entropy_bounds 

Source
pub fn verify_entropy_bounds<F>(entropy: F, data: &[u8]) -> bool
where F: Fn(&[u8]) -> f64,
Expand description

Verify entropy is bounded by log2(alphabet_size). For bytes, max entropy is 8.0 bits/byte.