From b43f92c55cf701b76b638df6680170766a1b5ebc Mon Sep 17 00:00:00 2001 From: Christian Eltzschig Date: Wed, 16 Oct 2024 16:19:52 +0200 Subject: [PATCH] [#349] Fix clang-tidy warnings --- iceoryx2-ffi/cxx/tests/src/test.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iceoryx2-ffi/cxx/tests/src/test.hpp b/iceoryx2-ffi/cxx/tests/src/test.hpp index 5771d914..2a3ad1aa 100644 --- a/iceoryx2-ffi/cxx/tests/src/test.hpp +++ b/iceoryx2-ffi/cxx/tests/src/test.hpp @@ -34,8 +34,8 @@ using ServiceTypes = ::testing::Types; inline auto generate_service_name() -> ServiceName { static std::atomic COUNTER = 0; - uint64_t now = std::chrono::system_clock::now().time_since_epoch().count(); - int random_number = rand(); // NOLINT(cert-msc30-c,cert-msc50-cpp) + const auto now = std::chrono::system_clock::now().time_since_epoch().count(); + const auto random_number = rand(); // NOLINT(cert-msc30-c,cert-msc50-cpp) return ServiceName::create((std::string("service_event_tests_") + std::to_string(COUNTER.fetch_add(1)) + "_" + std::to_string(now) + "_" + std::to_string(random_number)) .c_str())