Skip to main content

random_wrong_value

Function random_wrong_value 

Source
pub fn random_wrong_value(secret: &str, rng: &mut impl Rng) -> String
Expand description

Generates a deliberately wrong value of the same length as the real secret — so payload length isn’t a separate variable skewing the measurement (see the CLI warning about mismatched value_a/value_b length). Takes an external RNG so the whole run is reproducible from one seed.