Can anyone tell me why the number 5381 is used in DJB hash function ?
DJB Hash function is
h(0) = 5381
h(i) = 33 * h(i-1) ^ str[i]
A c progra
5381 is just a number that, in testing, resulted in fewer collisions and better avalanching. You'll find "magic constants" in just about every hash algo.