[][src]Module probminhash::invhash

This module provides inversible hash in 32bit and 64 bits version It uses Thomas Wang's invertible integer hash functions. See https://gist.github.com/lh3/59882d6b96166dfc3d8d for a snapshot.

Functions

int32_hash

computes a u32 hash value for a u32 key. we can retrieve key applying int32_hash_inverse to hash value

int32_hash_inverse

retrieves a u32 key from a u32 hash value

int64_hash

computes a u32 hash value for a u32 key. we can retrieve key applying int32_hash_inverse to hash value

int64_hash_inverse

The inversion of int64_hash.