gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r2526 - GNUnet/src/applications/gap


From: grothoff
Subject: [GNUnet-SVN] r2526 - GNUnet/src/applications/gap
Date: Thu, 16 Mar 2006 15:51:58 -0800 (PST)

Author: grothoff
Date: 2006-03-16 15:51:56 -0800 (Thu, 16 Mar 2006)
New Revision: 2526

Modified:
   GNUnet/src/applications/gap/gap.c
Log:
fix

Modified: GNUnet/src/applications/gap/gap.c
===================================================================
--- GNUnet/src/applications/gap/gap.c   2006-03-16 23:38:17 UTC (rev 2525)
+++ GNUnet/src/applications/gap/gap.c   2006-03-16 23:51:56 UTC (rev 2526)
@@ -671,7 +671,7 @@
 static unsigned int computeRoutingIndex(const HashCode512 * query) {
   unsigned int res
     = (((unsigned int*)query)[0] ^
-       ((unsigned int*)query)[1] * random_qsel)
+       ((unsigned int*)query)[1] / (1 + random_qsel))
     % indirectionTableSize;
   GNUNET_ASSERT(res < indirectionTableSize);
 #if DO_HISTOGRAM





reply via email to

[Prev in Thread] Current Thread [Next in Thread]