aboutsummaryrefslogtreecommitdiff
path: root/src/or/channelpadding.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-05-08 13:57:08 -0400
committerNick Mathewson <nickm@torproject.org>2017-05-08 13:57:08 -0400
commitfb97f76e71ab06abe4b4927f743f6683e7aaedab (patch)
tree4309e9c42182c9d7c83c9533ea5c9e42e59c1f89 /src/or/channelpadding.c
parent4d30dde15670bd4fb572025116304286880db636 (diff)
downloadtor-fb97f76e71ab06abe4b4927f743f6683e7aaedab.tar.gz
tor-fb97f76e71ab06abe4b4927f743f6683e7aaedab.zip
whitespace fixes
Diffstat (limited to 'src/or/channelpadding.c')
-rw-r--r--src/or/channelpadding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/channelpadding.c b/src/or/channelpadding.c
index 2370827fff..e57408ad5c 100644
--- a/src/or/channelpadding.c
+++ b/src/or/channelpadding.c
@@ -564,7 +564,7 @@ channelpadding_get_channel_idle_timeout(const channel_t *chan,
unsigned int timeout;
/* Non-canonical and client channels only last for 3-4.5 min when idle */
- if (!is_canonical || CHANNEL_IS_CLIENT(chan, options)) {
+ if (!is_canonical || CHANNEL_IS_CLIENT(chan, options)) {
#define CONNTIMEOUT_CLIENTS_BASE 180 // 3 to 4.5 min
timeout = CONNTIMEOUT_CLIENTS_BASE
+ crypto_rand_int(CONNTIMEOUT_CLIENTS_BASE/2);