Merge pull request #55 from frankbb/master

genhash can throw a segmentation fault when not providing an argument