fix number generarion

This commit is contained in:
nanov 2019-11-06 17:27:48 +02:00
parent bb8d1cfaa0
commit 429e807994

View File

@ -4,7 +4,8 @@ const { jsbn: { BigInteger } } = require('node-forge');
class BigNumber { class BigNumber {
constructor(value = '') { constructor(value = '') {
this._n = new BigInteger(value); this._n = new BigInteger(null);
this._n.fromInt(value);
} }
toBEBuffer(length = undefined) { toBEBuffer(length = undefined) {