genhash can throw a segmentation fault when not providing an argument