mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
Give correct bounds in next_random_exponential_delay() comment
This commit is contained in:
parent
c21cfd28f4
commit
f813b05202
1 changed files with 2 additions and 2 deletions
|
@ -3778,8 +3778,8 @@ find_dl_min_and_max_delay(download_status_t *dls, const or_options_t *options,
|
|||
|
||||
/** Advance one delay step. The algorithm is to use the previous delay to
|
||||
* compute an increment, we construct a value uniformly at random between
|
||||
* delay and MAX(delay*2,delay+1). We then clamp that value to be no larger
|
||||
* than max_delay, and return it.
|
||||
* delay+1 and (delay*4)+1 (or *3 in test networks).
|
||||
* We then clamp that value to be no larger than max_delay, and return it.
|
||||
*
|
||||
* Requires that delay is less than INT_MAX, and delay is in [0,max_delay].
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue