master
c 14 lines 326 Bytes
Raw
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 #include "netipc_netdata.h"
4
5 #if defined(OS_LINUX) || defined(OS_WINDOWS)
6
7 #include "libnetdata/xxHash/xxhash.h"
8
9 uint64_t netipc_auth_token(void) {
10 ND_UUID id = nd_log_get_invocation_id();
11 return XXH3_64bits(id.uuid, sizeof(id.uuid));
12 }
13
14 #endif // OS_LINUX || OS_WINDOWS