summaryrefslogtreecommitdiff
path: root/src/or/directory.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-11-08 08:13:14 -0500
committerNick Mathewson <nickm@torproject.org>2017-11-08 08:13:14 -0500
commitc2c1fa6b95dacbfd4b128c40032286d798aa5893 (patch)
treed6b011f12c364a5fec46638454bc183e51a44176 /src/or/directory.h
parentb780e84f256796870857259c16489e90a75a63c7 (diff)
parente5a83062ed4e9e6b908efc6b75f13ab269f97377 (diff)
downloadtor-c2c1fa6b95dacbfd4b128c40032286d798aa5893.tar.gz
tor-c2c1fa6b95dacbfd4b128c40032286d798aa5893.zip
Merge branch 'maint-0.3.2'
Diffstat (limited to 'src/or/directory.h')
-rw-r--r--src/or/directory.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/or/directory.h b/src/or/directory.h
index 764f0092e0..904bdfae46 100644
--- a/src/or/directory.h
+++ b/src/or/directory.h
@@ -229,7 +229,15 @@ STATIC const smartlist_t *find_dl_schedule(const 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);
+
+STATIC int next_random_exponential_delay(int delay,
+ int base_delay,
+ int max_delay);
+
+STATIC void next_random_exponential_delay_range(int *low_bound_out,
+ int *high_bound_out,
+ int delay,
+ int base_delay);
STATIC int parse_hs_version_from_post(const char *url, const char *prefix,
const char **end_pos);