From 6eebd30efd719cdde2671c89fe76a961ddf43f91 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Thu, 5 Dec 2024 18:01:19 +0100 Subject: [PATCH] fix: f3 gen power command being non-deterministic (#12764) Sort the power table before Selecting from it. --- cmd/lotus-shed/f3.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/lotus-shed/f3.go b/cmd/lotus-shed/f3.go index e1169a798f..aef53b7710 100644 --- a/cmd/lotus-shed/f3.go +++ b/cmd/lotus-shed/f3.go @@ -170,6 +170,7 @@ var f3GenExplicitPower = &cli.Command{ for _, pe := range powerMap { powerList = append(powerList, pe) } + sort.Sort(powerList) rng.Shuffle(len(powerList), powerList.Swap) iteration := cctx.Int("iteration")