2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 13:37:55 +00:00

[#3119] static cast time_t to uint32

This commit is contained in:
Piotrek Zadroga
2023-10-20 14:06:23 +02:00
committed by Razvan Becheriu
parent ff39af2b08
commit 78acb9cec0
2 changed files with 2 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ public:
}
// Init with the current time
rng_.seed(time(NULL));
rng_.seed(time(0));
}
/// \brief Generate uniformly distributed integer

View File

@@ -221,7 +221,7 @@ CSVLeaseFile6::readCltt(const CSVRow& row) {
time_t cltt =
static_cast<time_t>(row.readAndConvertAt<uint64_t>(getColumnIndex("expire"))
- readValid(row));
return (cltt);
return (static_cast<uint32_t>(cltt));
}
SubnetID