SA-MP Forums Archive
Know a low collision hash func? (string to int) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Know a low collision hash func? (string to int) (/showthread.php?tid=318677)



Know a low collision hash func? (string to int) - iggy1 - 16.02.2012

I have found some very good hashing functions for c++ (murmerhash3 being the best of the ones i have tried). But struggling to find a low collision hash function for PAWN. Must be string to int.

I want to play around with some code i have, to see if i can make it faster by comparing ints instead of strings. I don't know the first thing about cryptography so can't make my own

Any help would be very much appreciated.