From fe1d7543e21cbfae18448c7d15c49ccb2bf8e880 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 25 Oct 2015 15:45:03 +0000 Subject: [PATCH] -randomize ps each time --- src/core/gnunet-service-core_kx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/gnunet-service-core_kx.c b/src/core/gnunet-service-core_kx.c index 931125a97..ac6559588 100644 --- a/src/core/gnunet-service-core_kx.c +++ b/src/core/gnunet-service-core_kx.c @@ -687,6 +687,8 @@ setup_fresh_ping (struct GSC_KeyExchangeInfo *kx) struct GNUNET_CRYPTO_SymmetricInitializationVector iv; pm = &kx->ping; + kx->ping_challenge = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, + UINT32_MAX); pm->header.size = htons (sizeof (struct PingMessage)); pm->header.type = htons (GNUNET_MESSAGE_TYPE_CORE_PING); pm->iv_seed = calculate_seed (kx); -- 2.25.1