J
jlukar
It is very unlikely that you will find a hash code that is unique. As
a matter of fact, you may have misunderstood the use of hashes.
Yes I believe so. I thought it can be used in place of a key as it
implied in my mind a unique key.
This lets you know that if hashA != hashB, then A != B. if hashA ==
hashB, A might = B.
aha!
If your business field is exactly 5 uppercase letters, then that gives
you a possibility of 26^5 combinations, which fits within a 24 bit
number. You can get your hash value by treating the string of 5
uppercase letters as a base 26 number, A = 0, B = 1, ..., Z = 25.
The string AZWAA would be the number 0 * 26^0 + 25 * 26^1 + 22 * 26^2
+ 0 * 26^3 + 0 * 26^4
Notice that each term is a factor of a power of 26.
business field will be a 11 chars combined. The calculation another
poster did, makes this impossible for me.
Hope this helps.
very much so. thank you.