Precompute hash with simpler function
Merge pull request #14 from garybernhardt/precompute_hash

Precompute hash with simpler function