Here you can find the source of FNVHash(byte[] data)
public static int FNVHash(byte[] data)
//package com.java2s; //License from project: Open Source License public class Main { public static int FNVHash(byte[] data) { final int p = 16777619; int hash = (int) 2166136261L; for (byte b : data) hash = (hash ^ b) * p;// w ww .j a v a2s . c om hash += hash << 13; hash ^= hash >> 7; hash += hash << 3; hash ^= hash >> 17; hash += hash << 5; return hash; } }