Merge pull request #178 from cmgustavo/bug/get-random-id
Function getRandomId: Fix creating new wallet
This commit is contained in:
commit
e5f6245c13
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue