Skip to content

Commit

Permalink
[eclipse-iceoryx#349] Fix clang-tidy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
elfenpiff committed Oct 16, 2024
1 parent 7f662b9 commit b43f92c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iceoryx2-ffi/cxx/tests/src/test.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ using ServiceTypes = ::testing::Types<ServiceTypeIpc, ServiceTypeLocal>;

inline auto generate_service_name() -> ServiceName {
static std::atomic<uint64_t> 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())
Expand Down

0 comments on commit b43f92c

Please sign in to comment.