diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-30 19:24:12 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-30 19:24:12 +0000 |
commit | 427dd6f998fb1fde515a3b5c800f9f6d308197b2 (patch) | |
tree | 8cbe9bf7b43fafae07ed1a25753ccccdbe430148 /src/util/test_peer.c | |
parent | b18fa7b1e7fcb4d48e2ef314a7d822ccddd8bd60 (diff) | |
download | gnunet-427dd6f998fb1fde515a3b5c800f9f6d308197b2.tar.gz gnunet-427dd6f998fb1fde515a3b5c800f9f6d308197b2.zip |
-towards addressing #3047, note this causes the code to FTBFS
Diffstat (limited to 'src/util/test_peer.c')
-rw-r--r-- | src/util/test_peer.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/util/test_peer.c b/src/util/test_peer.c index fa4d31b8d..51f759867 100644 --- a/src/util/test_peer.c +++ b/src/util/test_peer.c | |||
@@ -24,8 +24,8 @@ | |||
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include "platform.h" | 26 | #include "platform.h" |
27 | #include "gnunet_crypto_lib.h" | 27 | #include "gnunet_util_lib.h" |
28 | #include "gnunet_peer_lib.h" | 28 | #include <gcrypt.h> |
29 | 29 | ||
30 | #define NUMBER_OF_PEERS 10 | 30 | #define NUMBER_OF_PEERS 10 |
31 | 31 | ||
@@ -42,8 +42,9 @@ generatePeerIdList () | |||
42 | 42 | ||
43 | for (i = 0; i < NUMBER_OF_PEERS; i++) | 43 | for (i = 0; i < NUMBER_OF_PEERS; i++) |
44 | { | 44 | { |
45 | GNUNET_CRYPTO_hash_create_random (GNUNET_CRYPTO_QUALITY_WEAK, | 45 | gcry_randomize (&pidArr[i], |
46 | &pidArr[i].hashPubKey); | 46 | sizeof (struct GNUNET_PeerIdentity), |
47 | GCRY_STRONG_RANDOM); | ||
47 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 48 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
48 | "Peer %d: %s\n", i, GNUNET_i2s (&pidArr[i])); | 49 | "Peer %d: %s\n", i, GNUNET_i2s (&pidArr[i])); |
49 | } | 50 | } |