Re:Predicting the next Math.random() in Java
by sgift on Monday September 01, 2014 @02:27PM
(#8254110)
How far do you want to go? The Javadocs state it plain and clear that this is not cryptographically secure. Is AlmostRandom enough? Maybe we should force people to set an enum? new AlmostRandom(AlmostRandomCertification.YES_I_M_NOT_AN_IDIOT_AND_WONT_USE_THIS_FOR_CRYPTOGRAPHIC_PURPOSES)? You have to draw the line somewhere.
[ Parent
| on HN ]
Re:Predicting the next Math.random() in Java
by jonahx on Monday September 01, 2014 @02:35PM
(#8254145)
True, although honestly your tongue-in-cheek enum example is probably closer to where the line should be.