From 050e77e6b8797839d15df26387655f3cea69fe51 Mon Sep 17 00:00:00 2001 From: mdevolde Date: Sun, 22 Mar 2026 21:10:49 +0100 Subject: [PATCH] fix(tally): fix shared default ciphertext in tally selection --- src/electionguard/tally.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/electionguard/tally.py b/src/electionguard/tally.py index db1f0f22..1c358b82 100644 --- a/src/electionguard/tally.py +++ b/src/electionguard/tally.py @@ -53,7 +53,7 @@ class CiphertextTallySelection(ElectionObjectBase, CiphertextSelection): """ ciphertext: ElGamalCiphertext = field( - default=ElGamalCiphertext(ONE_MOD_P, ONE_MOD_P) + default_factory=lambda: ElGamalCiphertext(ONE_MOD_P, ONE_MOD_P) ) """ The encrypted representation of the total of all ballots for this selection