summaryrefslogtreecommitdiff
path: root/src/PieceStatMan.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-06-11 22:40:56 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-06-11 22:40:56 +0900
commit37c2edd97abf81d373d55a29b326d68ae53dfb2e (patch)
tree8096a6123cab8333152b0d5629c1a5e6929f03cc /src/PieceStatMan.cc
parent8448b5062feb1aa2af9a61adc5153b12e33d7d14 (diff)
Use std::shuffle, instead of std::random_shuffle
Diffstat (limited to 'src/PieceStatMan.cc')
-rw-r--r--src/PieceStatMan.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PieceStatMan.cc b/src/PieceStatMan.cc
index de467482..aa9e9dee 100644
--- a/src/PieceStatMan.cc
+++ b/src/PieceStatMan.cc
@@ -51,8 +51,8 @@ PieceStatMan::PieceStatMan(size_t pieceNum, bool randomShuffle):
}
// we need some randomness in ordering.
if(randomShuffle) {
- std::random_shuffle(order_.begin(), order_.end(),
- *SimpleRandomizer::getInstance());
+ std::shuffle(order_.begin(), order_.end(),
+ *SimpleRandomizer::getInstance());
}
}