Merge pull request #178 from cmgustavo/bug/get-random-id

Function getRandomId: Fix creating new wallet
This commit is contained in:
Mario Colque 2014-04-24 16:02:52 -03:00
commit e5f6245c13

View file

@ -39,7 +39,7 @@ Wallet.prototype.log = function(){
};
Wallet.getRandomId = function() {
var r = buffertools.toHex(coinUtil.generateNonce());
var r = bitcore.SecureRandom.getPseudoRandomBuffer(8).toString('hex');
return r;
};