mirror of
https://github.com/OutCast3k/coinbin.git
synced 2025-12-25 20:04:36 +01:00
Merge pull request #4 from bip32JP/hashtendancies
Preserve entropy of x
This commit is contained in:
commit
fbb6f2d5b0
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user