aboutsummaryrefslogtreecommitdiffstats
path: root/common/placer_heap.cc
diff options
context:
space:
mode:
authorPer Grön <pgron@google.com>2020-12-30 18:53:32 +0100
committerPer Grön <pgron@google.com>2020-12-30 18:53:32 +0100
commit60276e34479e61307968c371c4af247bedf30c8f (patch)
treeb91338acfa13c2b53fe48105eb6ffa7639533469 /common/placer_heap.cc
parent818faa78aaac168742a1f2140de5f4c18c846348 (diff)
downloadnextpnr-60276e34479e61307968c371c4af247bedf30c8f.tar.gz
nextpnr-60276e34479e61307968c371c4af247bedf30c8f.tar.bz2
nextpnr-60276e34479e61307968c371c4af247bedf30c8f.zip
C++17 compatibility: Don't use std::random_shuffle
std::random_shuffle deprecated in C++14 and was removed in C++17.
Diffstat (limited to 'common/placer_heap.cc')
-rw-r--r--common/placer_heap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/placer_heap.cc b/common/placer_heap.cc
index 790c2230..908be49e 100644
--- a/common/placer_heap.cc
+++ b/common/placer_heap.cc
@@ -530,7 +530,7 @@ class HeAPPlacer
available_bels[ctx->getBelType(bel)].push_back(bel);
}
for (auto &t : available_bels) {
- std::random_shuffle(t.second.begin(), t.second.end(), [&](size_t n) { return ctx->rng(int(n)); });
+ ctx->shuffle(t.second.begin(), t.second.end());
}
for (auto cell : sorted(ctx->cells)) {
CellInfo *ci = cell.second;