Revert "Removing generateHash, which isn't used anymore."

This reverts commit 5dbfdcd7fd0a1ff87f9bad1be85a112d2346572a.
removing generateHash