Simplify `generateHash` method.

Arrays are passed by value, so no need to create a copy
minor #7 Simplify `generateHash` method. (staabm)

This PR was merged into the master branch.

Discussion
----------

Simplify `generateHash` method.

Arrays are passed by value, so no need to create a copy

Commits
-------

086c60c Simplify `generateHash` method.