Help in making a hash function

I have been recently studying hashing and tried generating a unique hash code from a string.I have been unsuccessful in deciding a method which generates a code with no possibility of collision.

Help me!


may help but I think if you’re on C++ ‘std::map’ does a pretty good job.


1 Like