commit 373661bd9a40828681f6f9d8f3f1484c2db5b567
parent 26a1ab5f0dd64c4a1395acf3627febe504f88ebc
Author: Bart Polot <bart@net.in.tum.de>
Date: Mon, 10 Mar 2014 09:52:44 +0000
- generate smaller hashes for Conn IDs
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c
@@ -2179,7 +2179,7 @@ struct MeshConnection *
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 @@ GMT_use_path (struct MeshTunnel3 *t, struct MeshPeerPath *p)
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)
{