Why are 5381 and 33 so important in the djb2 algorithm?
This hash function is similar to a Linear Congruential Generator (LCG – a simple class of functions that generate a series of psuedo-random numbers), which generally has the form: X = (a * X) + c; // “mod M”, where M = 2^32 or 2^64 typically Note the similarity to the djb2 hash function… a=33, … Read more