Function gnunet_sys::GNUNET_CRYPTO_hash_distance_u32 [−][src]
pub unsafe extern "C" fn GNUNET_CRYPTO_hash_distance_u32(
a: *const GNUNET_HashCode,
b: *const GNUNET_HashCode
) -> u32
@ingroup hash
Compute the distance between 2 hashcodes. The computation must be fast, not involve @a a[0] or @a a[4] (they’re used elsewhere), and be somewhat consistent. And of course, the result should be a positive number.
@param a some hash code @param b some hash code @return number between 0 and UINT32_MAX