sipb / spike

Implementing a packet level software network load balancer
MIT License
11 stars 10 forks source link

Ensuring primality of table size #24

Closed ed1d1a8d closed 7 years ago

ed1d1a8d commented 7 years ago

We should enforce that the maglev table size is prime in the constructor. https://github.com/sipb/spike/blob/master/maglev/maglev.go#L40-L44

cryslith commented 7 years ago

Yes, this is a bug.

cryslith commented 7 years ago

Fixed in f8b9a39634e57eec56be04a8555f53d4389b29c6.