diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-06-11 22:40:56 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-06-11 22:40:56 +0900 |
| commit | 37c2edd97abf81d373d55a29b326d68ae53dfb2e (patch) | |
| tree | 8096a6123cab8333152b0d5629c1a5e6929f03cc /src/RequestGroup.cc | |
| parent | 8448b5062feb1aa2af9a61adc5153b12e33d7d14 (diff) | |
Use std::shuffle, instead of std::random_shuffle
Diffstat (limited to 'src/RequestGroup.cc')
| -rw-r--r-- | src/RequestGroup.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/RequestGroup.cc b/src/RequestGroup.cc index 996ff53f..d43f4af3 100644 --- a/src/RequestGroup.cc +++ b/src/RequestGroup.cc @@ -565,8 +565,8 @@ void RequestGroup::initPieceStorage() downloadContext_->getFileEntries(), downloadContext_->getPieceLength()); if (!result.empty()) { - std::random_shuffle(std::begin(result), std::end(result), - *SimpleRandomizer::getInstance()); + std::shuffle(std::begin(result), std::end(result), + *SimpleRandomizer::getInstance()); auto priSelector = make_unique<PriorityPieceSelector> (ps->popPieceSelector()); priSelector->setPriorityPiece(std::begin(result), std::end(result)); |
