upwd
pub fn calculate_entropy(length: usize, pool_size: usize) -> f64
Calculates entropy.
let entropy = upwd::calculate_entropy(12, 64); assert_eq!(entropy, 72.0);
Panics if pool_size is zero
pool_size