Hi,
I want to generate a hash key from a string, and I want to the hash key is the same value for the same string. But it turns out all the hash functions I have tried, generate different keys from the same string. For example, if I run an excusable hash function several times in following example, it gave me all different values even the string does not change:
$ BobJenkinHash "hello"
0x183B3443
$ BobJenkinHash "hello"
0x24082445
Is it possible to generate the same hash value based on the same string?
Thank you.
Jim
I want to generate a hash key from a string, and I want to the hash key is the same value for the same string. But it turns out all the hash functions I have tried, generate different keys from the same string. For example, if I run an excusable hash function several times in following example, it gave me all different values even the string does not change:
$ BobJenkinHash "hello"
0x183B3443
$ BobJenkinHash "hello"
0x24082445
Is it possible to generate the same hash value based on the same string?
Thank you.
Jim
Comment