Hacker News new | ask | show | jobs
by grow2grow 877 days ago
> (For some extra “entropy”, by the way, snapdiff also takes the file size into consideration when comparing files.)

I get what you mean by "entropy", but wouldn't it be more direct to just say matching hashes will have their file sizes compared as a remedy to the collision?

Thanks for the effort, the "back yard diy" utilities are great for learning, especially with an accompanying article.

1 comments

Yeah, fair point – I couldn’t think of a better word, that’s why I wrapped it in quotes. I’ve tried to simplified the phrasing:

> For some extra safety margin to avoid collisions, by the way, `snapdiff` also takes the file size into consideration when comparing files.