Merge pull request #4 from bip32JP/hashtendancies

Preserve entropy of x
This commit is contained in:
OutCast3k
2014-12-28 11:54:33 +00:00
+2 -2
View File
@@ -56,8 +56,8 @@
x += coinjs.random(64);
x += x+''+x;
var r = x;
for(i=0;i<(x).length;i++){
r = Crypto.SHA256(r);
for(i=0;i<(x).length/16;i++){
r = Crypto.SHA256(r.concat(x));
}
return r;
}