Implement some crappy hash function for byte_array.