String hash keys - TechRepublic
General discussion
June 26, 2000 at 04:14 AM
jpereira

String hash keys

by jpereira . Updated 25 years, 11 months ago

Does anybody have an algorithm for producing a numerical hash key from an arbitrary length string? The ideal answer will distribute the keys evenly over a configurable range (e.g. 0 .. 4096) and similar strings will get different keys e.g. “jeremp”and “jeremyq” will get different keys.

This discussion is locked

All Comments