Merge pull request #4 from bip32JP/hashtendancies
Preserve entropy of x
This commit is contained in:
commit
fbb6f2d5b0
1 changed files with 2 additions and 2 deletions
|
@ -56,8 +56,8 @@
|
||||||
x += coinjs.random(64);
|
x += coinjs.random(64);
|
||||||
x += x+''+x;
|
x += x+''+x;
|
||||||
var r = x;
|
var r = x;
|
||||||
for(i=0;i<(x).length;i++){
|
for(i=0;i<(x).length/16;i++){
|
||||||
r = Crypto.SHA256(r);
|
r = Crypto.SHA256(r.concat(x));
|
||||||
}
|
}
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue