Generating good Hash Codes