From 373661bd9a40828681f6f9d8f3f1484c2db5b567 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 10 Mar 2014 09:52:44 +0000 Subject: - generate smaller hashes for Conn IDs --- src/mesh/gnunet-service-mesh_tunnel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesh/gnunet-service-mesh_tunnel.c') diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c index be44e495b..4d6bccb70 100644 --- 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) { -- cgit v1.2.3