Revert "Use existing builtin hashing functions to make this routine more"

This reverts commit r187745.