From 7721a245f3e6e52a6f927f1fa7fbfe22902e15b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Thu, 9 Apr 2015 21:33:29 +0200 Subject: [PATCH] asd --- src/twc-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/twc-utils.c b/src/twc-utils.c index f7f65b3..2f7d668 100644 --- a/src/twc-utils.c +++ b/src/twc-utils.c @@ -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;