Browse Source

ECPair: makeRandom, fix comparison

hk-custom-address
Daniel Cousens 10 years ago
parent
commit
96c04d0787
  1. 2
      src/ecpair.js

2
src/ecpair.js

@ -112,7 +112,7 @@ ECPair.makeRandom = function (options) {
typeforce(types.Buffer256bit, buffer) typeforce(types.Buffer256bit, buffer)
d = BigInteger.fromBuffer(buffer) d = BigInteger.fromBuffer(buffer)
} while (d.compareTo(secp256k1.n) > 0) } while (d.compareTo(secp256k1.n) >= 0)
return new ECPair(d, null, options) return new ECPair(d, null, options)
} }

Loading…
Cancel
Save