aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-11-08 08:11:22 -0500
committerNick Mathewson <nickm@torproject.org>2017-11-08 08:11:22 -0500
commite5a83062ed4e9e6b908efc6b75f13ab269f97377 (patch)
tree253abd655ffb82f7be81d3985e4a47c4c66f85b4 /src/or/directory.h
parent3dc61a5d71423e86d4d8090a90782a1ddf164880 (diff)
parentcb29687e93169e9615de3bc5adcbf6d31551b32c (diff)
downloadtor-e5a83062ed4e9e6b908efc6b75f13ab269f97377.tar.gz
tor-e5a83062ed4e9e6b908efc6b75f13ab269f97377.zip
Merge branch 'bug23816_029_squashed' into 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 79984be32d..d26d835377 100644
--- a/src/or/directory.h
+++ b/src/or/directory.h
@@ -226,7 +226,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);