diff options
Diffstat (limited to 'toxcore/net_crypto.c')
-rw-r--r-- | toxcore/net_crypto.c | 2 |
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, |