by jefftk · 10mo ago · 0 comments
> hash_val = sum(ord(c) for c in branch_name)
> django_port = 8001 + (hash_val % 99)
> Six agents, six features, one phone.
What do you mean, no conflicts? The probability of a collision with six branches and 99 ports slots is ~14% assuming optimal hashing (which this decidedly isn't).