gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r32600 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r32600 - gnunet/src/mesh
Date: Mon, 10 Mar 2014 10:52:44 +0100

Author: bartpolot
Date: 2014-03-10 10:52:44 +0100 (Mon, 10 Mar 2014)
New Revision: 32600

Modified:
   gnunet/src/mesh/gnunet-service-mesh_tunnel.c
Log:
- generate smaller hashes for Conn IDs

Modified: gnunet/src/mesh/gnunet-service-mesh_tunnel.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_tunnel.c        2014-03-10 09:52:43 UTC 
(rev 32599)
+++ gnunet/src/mesh/gnunet-service-mesh_tunnel.c        2014-03-10 09:52:44 UTC 
(rev 32600)
@@ -2179,7 +2179,7 @@
 GMT_use_path (struct MeshTunnel3 *t, struct MeshPeerPath *p)
 {
   struct MeshConnection *c;
-  struct GNUNET_HashCode cid;
+  struct GNUNET_MeshHash cid;
   unsigned int own_pos;
 
   if (NULL == t || NULL == p)
@@ -2205,7 +2205,7 @@
     return NULL;
   }
 
-  GNUNET_CRYPTO_hash_create_random (GNUNET_CRYPTO_QUALITY_NONCE, &cid);
+  GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_NONCE, &cid, sizeof (cid));
   c = GMC_new (&cid, t, p, own_pos);
   if (NULL == c)
   {




reply via email to

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