The core of the FNV hash
The core of the FNV-1 hash algorithm is as follows:hash = offset_basis for each octet_of_data to be hashed hash = hash * FNV_prime hash = hash xor octet_of_data return hashThe offset_basis andFNV_prime can be found in theparameters of the FNV-1/FNV-1a hash section below.
There is a minor variation of the FNV hash algorithm known as FNV-1a: < FNV-1a alternate algorithm