summaryrefslogtreecommitdiff
path: root/src/or/directory.h
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2016-06-18 18:23:55 +0000
committerAndrea Shepard <andrea@torproject.org>2016-06-18 18:23:55 +0000
commit1f1df4ab740b2d2c2a833a81553bb723512bdd97 (patch)
treed0f00bb84d0c71c3387fb48af9b408e70bec5f35 /src/or/directory.h
parent1dfbfd319e417c06c6e6d97d8c617522873ad43f (diff)
downloadtor-1f1df4ab740b2d2c2a833a81553bb723512bdd97.tar.gz
tor-1f1df4ab740b2d2c2a833a81553bb723512bdd97.zip
Move exponential-random backoff computation out of download_status_schedule_get_delay() into separate function, per code review
Diffstat (limited to 'src/or/directory.h')
-rw-r--r--src/or/directory.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/directory.h b/src/or/directory.h
index d867aa38c4..afa3bcc611 100644
--- a/src/or/directory.h
+++ b/src/or/directory.h
@@ -158,6 +158,8 @@ STATIC const smartlist_t *find_dl_schedule(download_status_t *dls,
STATIC void find_dl_min_and_max_delay(download_status_t *dls,
const or_options_t *options,
int *min, int *max);
+STATIC int next_random_exponential_delay(int delay, int max_delay);
+
#endif
#endif