Can I use xxHash in an MIT-licensed project?

153 views
Skip to first unread message

George Koskeridis

unread,
Mar 12, 2017, 7:58:07 AM3/12/17
to LZ4c
So I am writing this open-source data structure library and i have some hashtables in there, and I'm using xxHash which is amazing so far.
Collisions are rare, even when I'm using the same seed. It's the best hash function from all the ones i've tried (and I tried a lot). But I read somewhere online
that BSD-2 license might not be compatible with MIT? Is that true? Supposedly it's because BSD requires author attribution and MIT doesnt,
but according to tldrlegal both MIT and BSD require attribution

https://tldrlegal.com/license/mit-license

https://tldrlegal.com/license/bsd-2-clause-license-(freebsd)

It seems that BSD words it more strongly than MIT

BSD:
1. Redistributions of source code must retain the above copyright notice, this
   list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.


MIT:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

Do you guys know what's up with that? Will I have to change my project's license to BSD-2 as well?

Cyan

unread,
Mar 14, 2017, 7:42:08 AM3/14/17
to LZ4c
MIT and BSD-2 are mostly identical, even if worded differently, and officially compatible.
Incompatibility used to exist with the much older BSD-4 clause license, which is no longer used nowadays.

You can keep your project as MIT, with one part of it being BSD-2.
Since each license requires to be reproduced, you'll have to include both license texts somewhere.
Or state that the license is "per file" and must be checked in source code header.
Either way, it's a minor nuisance.

George Koskeridis

unread,
Mar 21, 2017, 8:32:37 AM3/21/17
to LZ4c
Thanks for responding! I figured since they are similar I might as well switch to BSD-2 and so I did. Here's how it looks now https://github.com/Gikoskos/EduDS

If you want me to word it in a different way please tell me. Thank you for the cool hashing algorithm!

Cyan

unread,
Mar 21, 2017, 2:13:13 PM3/21/17
to LZ4c
Looks good to me !

You're welcomed !
Reply all
Reply to author
Forward
0 new messages