Skip to content

Commit

Permalink
Use GetStrongRandBytes in CMnemonic::Generate
Browse files Browse the repository at this point in the history
  • Loading branch information
codablock committed Dec 22, 2017
1 parent 249167a commit abe84cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bip39.cpp
Expand Up @@ -37,7 +37,7 @@ SecureString CMnemonic::Generate(int strength)
return SecureString();
}
SecureVector data(32);
GetRandBytes(&data[0], 32);
GetStrongRandBytes(&data[0], 32);
SecureString mnemonic = FromData(data, strength / 8);
return mnemonic;
}
Expand Down

0 comments on commit abe84cb

Please sign in to comment.