ECPair: makeRandom, fix comparison

This commit is contained in:
Daniel Cousens 2015-08-24 01:03:54 +10:00
parent b12f559b85
commit 96c04d0787

View file

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