systemd / casync

Content-Addressable Data Synchronization Tool
1.5k stars 117 forks source link

Why use a modified version of buzhash? #214

Open bradley-curran opened 5 years ago

bradley-curran commented 5 years ago

I noticed that the magic numbers for buzhash have been modified from the original.

I'm curious as to why these numbers changed for casync. What advantages does it provide and how did you generate these numbers?

bradley-curran commented 5 years ago

On further exploration I can see that XORing the numbers together produces 0 for your numbers and doesn't for buzhash. I'm assuming this is intentional?