diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-01-14 21:08:02 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-01-14 21:08:02 +0000 |
commit | da739a9438bab75b1ad18cb96208069895b88d2b (patch) | |
tree | 75f1dbb6d7c08264e27a58d0b2ad97839aa414f3 /toxcore/TCP_server.c | |
parent | d79b15c52daf82748040f41f93fa6e046efdeee7 (diff) |
Add random_u16 function and rename the others to match.
Diffstat (limited to 'toxcore/TCP_server.c')
-rw-r--r-- | toxcore/TCP_server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/TCP_server.c b/toxcore/TCP_server.c index 9c6506bb..e86776e5 100644 --- a/toxcore/TCP_server.c +++ b/toxcore/TCP_server.c | |||
@@ -1246,7 +1246,7 @@ static void do_TCP_confirmed(TCP_Server *TCP_server) | |||
1246 | if (is_timeout(conn->last_pinged, TCP_PING_FREQUENCY)) { | 1246 | if (is_timeout(conn->last_pinged, TCP_PING_FREQUENCY)) { |
1247 | uint8_t ping[1 + sizeof(uint64_t)]; | 1247 | uint8_t ping[1 + sizeof(uint64_t)]; |
1248 | ping[0] = TCP_PACKET_PING; | 1248 | ping[0] = TCP_PACKET_PING; |
1249 | uint64_t ping_id = random_64b(); | 1249 | uint64_t ping_id = random_u64(); |
1250 | 1250 | ||
1251 | if (!ping_id) { | 1251 | if (!ping_id) { |
1252 | ++ping_id; | 1252 | ++ping_id; |