Skip to content

Commit 82de1b8

Browse files
committed
net: use GetRandMicros for cache expiration
This matches the data type of m_cache_entry_expiration.
1 parent ddc184d commit 82de1b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3475,7 +3475,7 @@ std::vector<CAddress> CConnman::GetAddresses(CNode& requestor, size_t max_addres
34753475
// nodes to be "terrible" (see IsTerrible()) if the timestamps are older than 30 days,
34763476
// max. 24 hours of "penalty" due to cache shouldn't make any meaningful difference
34773477
// in terms of the freshness of the response.
3478-
cache_entry.m_cache_entry_expiration = current_time + std::chrono::hours(21) + GetRandMillis(std::chrono::hours(6));
3478+
cache_entry.m_cache_entry_expiration = current_time + std::chrono::hours(21) + GetRandMicros(std::chrono::hours(6));
34793479
}
34803480
return cache_entry.m_addrs_response_cache;
34813481
}

0 commit comments

Comments
 (0)