summaryrefslogtreecommitdiff
path: root/toxcore/net_crypto.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-01-14 21:08:02 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-01-14 21:08:02 +0000
commitda739a9438bab75b1ad18cb96208069895b88d2b (patch)
tree75f1dbb6d7c08264e27a58d0b2ad97839aa414f3 /toxcore/net_crypto.c
parentd79b15c52daf82748040f41f93fa6e046efdeee7 (diff)
Add random_u16 function and rename the others to match.
Diffstat (limited to 'toxcore/net_crypto.c')
-rw-r--r--toxcore/net_crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c
index 99e6701b..b3cf2cbf 100644
--- a/toxcore/net_crypto.c
+++ b/toxcore/net_crypto.c
@@ -1892,7 +1892,7 @@ int new_crypto_connection(Net_Crypto *c, const uint8_t *real_public_key, const u
1892 conn->rtt_time = DEFAULT_PING_CONNECTION; 1892 conn->rtt_time = DEFAULT_PING_CONNECTION;
1893 memcpy(conn->dht_public_key, dht_public_key, CRYPTO_PUBLIC_KEY_SIZE); 1893 memcpy(conn->dht_public_key, dht_public_key, CRYPTO_PUBLIC_KEY_SIZE);
1894 1894
1895 conn->cookie_request_number = random_64b(); 1895 conn->cookie_request_number = random_u64();
1896 uint8_t cookie_request[COOKIE_REQUEST_LENGTH]; 1896 uint8_t cookie_request[COOKIE_REQUEST_LENGTH];
1897 1897
1898 if (create_cookie_request(c, cookie_request, conn->dht_public_key, conn->cookie_request_number, 1898 if (create_cookie_request(c, cookie_request, conn->dht_public_key, conn->cookie_request_number,