diff --git a/src/ecpair.js b/src/ecpair.js index 432ad69..3d459e4 100644 --- a/src/ecpair.js +++ b/src/ecpair.js @@ -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) }