Skip to content

Commit a12d3ef

Browse files
committed
Refs #20629: Fix windows build
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
1 parent 933e4ef commit a12d3ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cpp/rtps/builtin/discovery/participant/PDPClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ void set_server_client_random_guidPrefix(
13791379
eprosima::fastdds::rtps::GuidUtils::instance().guid_prefix_create(0, guid);
13801380

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

0 commit comments

Comments
 (0)