diff --git a/js/models/core/Wallet.js b/js/models/core/Wallet.js index fdbfe36ee..70e01c0af 100644 --- a/js/models/core/Wallet.js +++ b/js/models/core/Wallet.js @@ -39,8 +39,7 @@ Wallet.prototype.log = function(){ }; Wallet.getRandomId = function() { - var r = buffertools.toHex(coinUtil.generateNonce()); - return r; + return bitcore.SecureRandom.getPseudoRandomBuffer(8); }; Wallet.prototype._handlePublicKeyRing = function(senderId, data, isInbound) {