mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-01 14:35:29 +00:00
[#3119] static cast time_t to uint32
This commit is contained in:
committed by
Razvan Becheriu
parent
ff39af2b08
commit
78acb9cec0
@@ -67,7 +67,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Init with the current time
|
// Init with the current time
|
||||||
rng_.seed(time(NULL));
|
rng_.seed(time(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// \brief Generate uniformly distributed integer
|
/// \brief Generate uniformly distributed integer
|
||||||
|
@@ -221,7 +221,7 @@ CSVLeaseFile6::readCltt(const CSVRow& row) {
|
|||||||
time_t cltt =
|
time_t cltt =
|
||||||
static_cast<time_t>(row.readAndConvertAt<uint64_t>(getColumnIndex("expire"))
|
static_cast<time_t>(row.readAndConvertAt<uint64_t>(getColumnIndex("expire"))
|
||||||
- readValid(row));
|
- readValid(row));
|
||||||
return (cltt);
|
return (static_cast<uint32_t>(cltt));
|
||||||
}
|
}
|
||||||
|
|
||||||
SubnetID
|
SubnetID
|
||||||
|
Reference in New Issue
Block a user