lt sync 2584

This commit is contained in:
Andrew Resch 2008-07-31 09:43:54 +00:00
parent 3736fbf8eb
commit b5a31f67f2
1 changed files with 1 additions and 1 deletions

View File

@ -513,7 +513,7 @@ namespace libtorrent
priority_range(priority, &range_start, &range_end);
int new_index;
if (range_end == range_start) new_index = range_start;
else new_index = rand() % (range_end - range_start) + range_start;
else new_index = rand() % (range_end - range_start + 1) + range_start;
#ifdef TORRENT_PICKER_LOG
std::cerr << "add " << index << " (" << priority << ")" << std::endl;