Fixed invalid hashing code.
Merge pull request #22 from pzduniak/master

Make key hashing compatible with Go 1.1.2