tpython3: fix bad type in make_seed - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit e562b0b5653568740f5933ad98e51044b863e4e4 DIR parent 8a15581d8e7cafd9d29c08a3bb441a0b4a16f7a7 HTML Author: fr3aker <fr3aker@users.noreply.github.com> Date: Sat, 11 Feb 2017 19:57:46 +0100 python3: fix bad type in make_seed Diffstat: M lib/mnemonic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/lib/mnemonic.py b/lib/mnemonic.py t@@ -177,7 +177,7 @@ class Mnemonic(object): prefix = version.seed_prefix(seed_type) # increase num_bits in order to obtain a uniform distibution for the last word bpw = math.log(len(self.wordlist), 2) - num_bits = int(math.ceil(num_bits/bpw)) * bpw + num_bits = int(math.ceil(num_bits/bpw) * bpw) # handle custom entropy; make sure we add at least 16 bits n_custom = int(math.ceil(math.log(custom_entropy, 2))) n = max(16, num_bits - n_custom)