JnCrMx / ChocoBot

Just a small Discord bot.
MIT License
1 stars 1 forks source link

?ship-command outputs exactly the same values for some words combined with another #12

Closed JnCrMx closed 4 years ago

JnCrMx commented 4 years ago

This occurs if the hashes of two words have the same first bytes. Therefore ?ship will give the same values for those two words shipped with another word.

This is clearly not what we want here.

To fix this:

JnCrMx commented 4 years ago

An example for that is "Chocokeks" and "MG". No matter with of them you ship with a specific other word it will have the same value:

?ship Chocokeks x qwertzuiopü gives the same result as ?ship MG x qwertzuiopü