From da739a9438bab75b1ad18cb96208069895b88d2b Mon Sep 17 00:00:00 2001 From: iphydf Date: Sun, 14 Jan 2018 21:08:02 +0000 Subject: Add random_u16 function and rename the others to match. --- toxcore/net_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toxcore/net_crypto.c') 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 conn->rtt_time = DEFAULT_PING_CONNECTION; memcpy(conn->dht_public_key, dht_public_key, CRYPTO_PUBLIC_KEY_SIZE); - conn->cookie_request_number = random_64b(); + conn->cookie_request_number = random_u64(); uint8_t cookie_request[COOKIE_REQUEST_LENGTH]; if (create_cookie_request(c, cookie_request, conn->dht_public_key, conn->cookie_request_number, -- cgit v1.2.3