mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 08:35:07 -05:00
nts: convert to monotonic time
Use the monotonic timestamp provided by the scheduler for NTS-KE rate limiting and refresh.
This commit is contained in:
@@ -85,7 +85,7 @@ get_request(NNC_Instance inst)
|
||||
TEST_CHECK(!NNC_GenerateRequestAuth(inst, &packet, &info));
|
||||
|
||||
while (!NNC_PrepareForAuth(inst)) {
|
||||
inst->last_nke_attempt.tv_sec = random();
|
||||
inst->last_nke_attempt = random() % 100000 - 50000;
|
||||
}
|
||||
|
||||
TEST_CHECK(inst->num_cookies > 0);
|
||||
|
||||
Reference in New Issue
Block a user