Repair test_saft_hash_generic so that it does not segfault.