Skip to content

Commit

Permalink
Refs #20629: Fix windows build
Browse files Browse the repository at this point in the history
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
  • Loading branch information
cferreiragonz committed Apr 26, 2024
1 parent 933e4ef commit a12d3ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpp/rtps/builtin/discovery/participant/PDPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,7 @@ void set_server_client_random_guidPrefix(
eprosima::fastdds::rtps::GuidUtils::instance().guid_prefix_create(0, guid);

auto now = std::chrono::high_resolution_clock::now();
srand(now.time_since_epoch().count());
srand(static_cast<uint32_t>(now.time_since_epoch().count()));
for (auto i = 4; i < 12; i++)
{
guid.value[i] = eprosima::fastrtps::rtps::octet(rand() % 254);
Expand Down

0 comments on commit a12d3ef

Please sign in to comment.