Hi everyone. If I am to example putting several hash function together, would it be as safe as to make an md5 or a sha1 hash? I wonder because I have a program and it generate a md5 hash too slowly. It can only generate up to 20000 hashes (on a laptop) in a second and it is not enough. My idea to fix this is too use several fast hash functions as murmurhash2 and superfasthash, like this:
But is this good in that sense it decrease collision chance than a md5 hash? if I am using a third hash function, would it decrease collision even more? If not, do anyone have any tips on how I can generate a hash fast which have extremely low collision chance?Code:unsigned int* hashes = new unsigned int; hashes = MurmurHash2(str,len); hashes = SuperFastHash(str,len);
Thanks in advance!