summaryrefslogtreecommitdiff
path: root/auto_tests/onion_test.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-11-06 15:14:02 +0000
committeriphydf <iphydf@users.noreply.github.com>2016-11-09 22:30:49 +0000
commitaed24408db9cd8afe632a1d3f056669ae34f49be (patch)
tree77cb037490b3f97af949eb39dfdf2e1e513b61d1 /auto_tests/onion_test.c
parent42dfdf73c1dfd899a4f5a44ea1584aaf3a4ed3d2 (diff)
Remove new_nonce function in favour of random_nonce.
`new_nonce` has been an alias for `random_nonce` for a while now. Having two names for the same operation is confusing. `random_nonce` better expresses the intent. The documentation for `new_nonce` talks about guaranteeing that the nonce is different from previous ones, which is incorrect, it's just quite likely to be different.
Diffstat (limited to 'auto_tests/onion_test.c')
-rw-r--r--auto_tests/onion_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/auto_tests/onion_test.c b/auto_tests/onion_test.c
index ee9df7a0..d84c3991 100644
--- a/auto_tests/onion_test.c
+++ b/auto_tests/onion_test.c
@@ -225,7 +225,7 @@ START_TEST(test_basic)
225 Onion *onion3 = new_onion(new_DHT(NULL, new_networking(NULL, ip, 34569))); 225 Onion *onion3 = new_onion(new_DHT(NULL, new_networking(NULL, ip, 34569)));
226 ck_assert_msg((onion3 != NULL), "Onion failed initializing."); 226 ck_assert_msg((onion3 != NULL), "Onion failed initializing.");
227 227
228 new_nonce(nonce); 228 random_nonce(nonce);
229 ret = send_data_request(onion3->net, &path, nodes[3].ip_port, onion1->dht->self_public_key, 229 ret = send_data_request(onion3->net, &path, nodes[3].ip_port, onion1->dht->self_public_key,
230 onion1->dht->self_public_key, 230 onion1->dht->self_public_key,
231 nonce, (const uint8_t *)"Install gentoo", sizeof("Install gentoo")); 231 nonce, (const uint8_t *)"Install gentoo", sizeof("Install gentoo"));