commit 43c037cc10e1f66347ff061a68eaed9fcb3c8c02
parent 0ae04a64193475fa56ee3b5de61ce19e44b2c1a5
Author: ThomasV <thomasv@electrum.org>
Date: Fri, 8 Apr 2016 10:43:55 +0200
follow-up 0ae04a64193475fa56ee3b5de61ce19e44b2c1a5
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/RELEASE-NOTES b/RELEASE-NOTES
@@ -1,4 +1,5 @@
# Release 2.6.4 (bugfixes)
+ * fix coinchooser bug (#1703)
* fix daemon JSONRPC (#1731)
* fix command-line broadcast (#1728)
* QT: add colors to labels
diff --git a/lib/coinchooser.py b/lib/coinchooser.py
@@ -60,7 +60,7 @@ class PRNG:
return start + (r % n)
def choice(self, seq):
- return seq[self.randint(0, seq)]
+ return seq[self.randint(0, len(seq))]
def shuffle(self, x):
for i in reversed(xrange(1, len(x))):