Fixed invalid hashing code.

Code previously wasn't compilable due to invalid hash.Hash usage.