aboutsummaryrefslogtreecommitdiffstats
path: root/common/place_sa.cc
diff options
context:
space:
mode:
Diffstat (limited to 'common/place_sa.cc')
-rw-r--r--common/place_sa.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/place_sa.cc b/common/place_sa.cc
index a5e7c55d..7588b245 100644
--- a/common/place_sa.cc
+++ b/common/place_sa.cc
@@ -285,7 +285,7 @@ BelId random_bel_for_cell(Context *ctx, CellInfo *cell, SAState &state,
}
}
-void place_design_sa(Context *ctx, int seed)
+void place_design_sa(Context *ctx)
{
SAState state;
@@ -322,7 +322,7 @@ void place_design_sa(Context *ctx, int seed)
}
log_info("place_constraints placed %d\n", int(placed_cells));
rnd_state rnd;
- rnd.state = seed;
+ rnd.state = ctx->rng();
std::vector<CellInfo *> autoplaced;
// Sort to-place cells for deterministic initial placement
for (auto cell : ctx->cells) {