3 ms·
As tptacek has mentioned many, many times, SecureRandom is one of those things which is very secure if you understand exactly what it is doing and do not shoot
by patio11 13y ago
As tptacek has mentioned many, many times, SecureRandom is one of those things which is very secure if you understand exactly what it is doing and do not shoot yourself in the foot.
One easy way to shoot yourself in the foot with SecureRandom is to use seed values from a source with low entropy.
http://developer.android.com/reference/java/security/SecureRandom.html http://developer.android.com/reference/java/security/SecureR...
If one were to copy/paste the sort of code samples which show up when one Googles for [Android SecureRandom], one would more than likely call setSeed, possibly in such a fashion as to duplicate seeds and, predictably, make the output of the random number generator deterministic.
I will leave it to one's individual judgement as to whether "It is unlikely a serious developer would copy/paste in crypto code into a project that has real money on the line" is descriptive of the prevalent standard of care in engineering in the Bitcoin community.
- tptacek 13y agoThey were explicitly seeding SecureRandom?
- Dylan16807 13y agoIf that's the problem, it does lead to a beautiful solution of fixing bugs by removing code entirely.