3 ms·
Because suitability for use in secure algorithms is just one property of the random number generator. At what point do we then decide it needs to be uniformInse
by Macha 6y ago
Because suitability for use in secure algorithms is just one property of the random number generator. At what point do we then decide it needs to be uniformInsecureBoundedRandom?
Why don't we apply the same logic to string comparisons. Should we replace String.equals with String.shortcuttableEquals()? Since there's plenty of circumstances where that is inappropriate for crypto uses also.
What about other functions with important caveats? Should we have mailGmailMightReject()? fsyncCantFixHardware()? file.existsAtCurrentInstant()?
- striking 6y agoI actually don't hate `file.existsAtCurrentInstant`. `file.exists` is so misused. Maybe functions suitable for crypto use should be in their own "crypto primitives" package.
- TheCoelacanth 6y agoI would prefer something like file.existedAtSomePointInTheRecentPast