BIND 10 #911: time64 & Y2038
BIND 10 Development
do-not-reply at isc.org
Mon Jul 2 18:00:07 UTC 2012
#911: time64 & Y2038
--------------------------------------------+-----------------------------
Reporter: fdupont | Owner:
Type: enhancement | Status: new
Priority: low | Milestone:
Component: Unclassified | Resolution:
Keywords: | Sensitive: 0
Defect Severity: Low | Sub-Project: Core
Feature Depending on Ticket: none | Estimated Difficulty: 3
Add Hours to Ticket: 0 | Total Hours: 0
Internal?: 0 |
--------------------------------------------+-----------------------------
Comment (by fdupont):
Some examples:
random_number_generator.h lines 82 and 125: {{{rng_.seed(time(NULL));}}}
(as it is in a .h one can get it many times)
rrset_entry.cc line 59: {{{uint32_t now = time(NULL);}}}
rrset_entry.cc line 60: {{{uint32_t newTTL = now < expire_time_ ?
(expire_time_ - now) : 0;}}}
dhcp6_srv.cc line 226: {{{srandom(time(NULL));}}}
(BTW there is already a random generator in libutil)
rrset_entry_unittest.cc line 116: {{{uint32_t exp_time = time(NULL) +
TEST_TTL;}}}
range_utilities_unittest.cc line 45: {{{srandom(time(NULL));}}}
(note in this case it is another libutil test)
--
Ticket URL: <http://bind10.isc.org/ticket/911#comment:14>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list