Electrum wrapper: fix probability mistake
commit593dbec14db8450e612b5c4432f6be930ba25e29
authoranonym <anonym@riseup.net>
Tue, 26 Nov 2024 12:18:26 +0000 (26 13:18 +0100)
committeranonym <anonym@riseup.net>
Tue, 26 Nov 2024 12:18:26 +0000 (26 13:18 +0100)
tree90a946eeb9a82aa427b30a90602a6b3795a0826f
parent2053820049ed16972e2d186af1b1e11bb5505b14
Electrum wrapper: fix probability mistake

Since random.random() picks a float between (inclusive on both ends) 0
and 1.0, `int(round(100 * random.random()))` picks an integer from 0
to 100, so 101 different outcomes, while we want 100. That 0 outcome
skews unfairly toward the first listed CampaignOption (with non-zero
probibility).
config/chroot_local-includes/usr/local/bin/electrum