summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/passes/CoalesceLocals.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/passes/CoalesceLocals.cpp b/src/passes/CoalesceLocals.cpp
index a2976d089..17f6b08c3 100644
--- a/src/passes/CoalesceLocals.cpp
+++ b/src/passes/CoalesceLocals.cpp
@@ -514,9 +514,7 @@ void CoalesceLocalsWithLearning::pickIndices(std::vector<Index>& indices) {
first = false;
} else {
// leave params alone, shuffle the rest
- std::random_shuffle(ret->begin() + parent->getFunction()->getNumParams(), ret->end(), [this](int i) {
- return noise() % i;
- });
+ std::shuffle(ret->begin() + parent->getFunction()->getNumParams(), ret->end(), noise);
}
calculateFitness(ret);
#ifdef CFG_LEARN_DEBUG