verify_avalanche

Function verify_avalanche 

Source
pub fn verify_avalanche(input1: &[u8], input2: &[u8]) -> f64
Expand description

Verify avalanche effect for security

Ensures that small input changes result in large output changes. This is a fundamental property of secure hash functions.

§Arguments

  • input1 - First input data
  • input2 - Second input data (differing by 1 bit)

§Returns

Returns the avalanche coefficient (0.0 to 1.0), where 0.5 is ideal