diff options
author | Michael Vogt <mvo@ubuntu.com> | 2014-05-23 17:24:17 +0200 |
---|---|---|
committer | Michael Vogt <mvo@ubuntu.com> | 2014-05-23 17:24:17 +0200 |
commit | e5f34ad3b043abf033c1626eb8449b75955d6760 (patch) | |
tree | 0e23c5eea4aa09b847e65ed348f8a9b63cfe9139 /apt-pkg/contrib/srvrec.h | |
parent | cc4800145b408de0b4afef88f4489a541024e75a (diff) |
WIP start randomizing
Diffstat (limited to 'apt-pkg/contrib/srvrec.h')
-rw-r--r-- | apt-pkg/contrib/srvrec.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apt-pkg/contrib/srvrec.h b/apt-pkg/contrib/srvrec.h index fd71e697f..79b318b48 100644 --- a/apt-pkg/contrib/srvrec.h +++ b/apt-pkg/contrib/srvrec.h @@ -21,6 +21,11 @@ class SrvRec u_int16_t weight; u_int16_t port; + // each server is assigned a interval [start, end] in the space of [0, max] + int random_number_range_start; + int random_number_range_end; + int random_number_range_max; + bool operator<(SrvRec const &other) const { return this->priority < other.priority; } |