This commit is contained in:
Håvard Pettersson 2015-04-09 21:33:29 +02:00
parent d01c85257e
commit 7721a245f3

View File

@ -177,7 +177,7 @@ twc_hash_tox_id(const uint8_t *tox_id)
{
unsigned long long hash = 5381;
for (size_t i = 0; i < TOX_CLIENT_ID_SIZE; ++i)
for (size_t i = 0; i < TOX_PUBLIC_KEY_SIZE; ++i)
hash ^= (hash << 5) + (hash >> 2) + tox_id[i];
return hash;