diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-06-03 13:08:11 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-06-03 13:08:11 +0000 |
commit | a960f943c1d0bc9b5f5986c1d29835b63bf3e2ef (patch) | |
tree | fbc5ff7eaeedcfc4ee2a43f2ef31502dd40bba2b /src/consensus | |
parent | 4593a0ee9f3e6a86520d4dd493430f0f1d88dcd2 (diff) | |
download | gnunet-a960f943c1d0bc9b5f5986c1d29835b63bf3e2ef.tar.gz gnunet-a960f943c1d0bc9b5f5986c1d29835b63bf3e2ef.zip |
-notes
Diffstat (limited to 'src/consensus')
-rw-r--r-- | src/consensus/gnunet-service-consensus.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/consensus/gnunet-service-consensus.c b/src/consensus/gnunet-service-consensus.c index 21123b24f..5ebff524c 100644 --- a/src/consensus/gnunet-service-consensus.c +++ b/src/consensus/gnunet-service-consensus.c | |||
@@ -35,7 +35,7 @@ | |||
35 | #include "consensus.h" | 35 | #include "consensus.h" |
36 | 36 | ||
37 | 37 | ||
38 | /* | 38 | /** |
39 | * Log macro that prefixes the local peer and the peer we are in contact with. | 39 | * Log macro that prefixes the local peer and the peer we are in contact with. |
40 | */ | 40 | */ |
41 | #define LOG_PP(kind, cpi, m,...) GNUNET_log (kind, "P%d for P%d: " m, \ | 41 | #define LOG_PP(kind, cpi, m,...) GNUNET_log (kind, "P%d for P%d: " m, \ |
@@ -362,8 +362,10 @@ shuffle (struct ConsensusSession *session) | |||
362 | if (NULL == session->shuffle) | 362 | if (NULL == session->shuffle) |
363 | session->shuffle = GNUNET_malloc (session->num_peers * sizeof (*session->shuffle)); | 363 | session->shuffle = GNUNET_malloc (session->num_peers * sizeof (*session->shuffle)); |
364 | 364 | ||
365 | GNUNET_CRYPTO_kdf (randomness, sizeof (randomness), &session->exp_round, sizeof (uint32_t), | 365 | GNUNET_CRYPTO_kdf (randomness, sizeof (randomness), |
366 | &session->global_id, sizeof (struct GNUNET_HashCode)); | 366 | &session->exp_round, sizeof (uint32_t), |
367 | &session->global_id, sizeof (struct GNUNET_HashCode), | ||
368 | NULL); | ||
367 | 369 | ||
368 | for (i = 0; i < session->num_peers; i++) | 370 | for (i = 0; i < session->num_peers; i++) |
369 | session->shuffle[i] = i; | 371 | session->shuffle[i] = i; |