diff --git a/agt/voteragent/voteragent.go b/agt/voteragent/voteragent.go index 3395f68d67f4a5f19833d9dd3e243530d369c282..fb8e8b9288ac000b393a94616ce65aaa7fe56974 100644 --- a/agt/voteragent/voteragent.go +++ b/agt/voteragent/voteragent.go @@ -64,7 +64,9 @@ func (rca *RestClientAgent) Start() { } } - rca.options = []int{1 + rand.Intn(rca.nbAlts-1)} + if len(rca.options) == 0 { + rca.options = []int{1 + rand.Intn(rca.nbAlts-1)} + } err := rca.vote()