4 ms·
sane defaults is always the goal. The only problem is people can't seem to agree on what behaviour is "sane".
by tobyjsullivan 2y ago
sane defaults is always the goal. The only problem is people can't seem to agree on what behaviour is "sane".
- mjw1007 2y agoSo don't have a default. Have securerandom() and insecurerandom() and make the programmer choose. That has the advantage of avoiding problems in a generation's time: if most platforms moved to random() being secure, it would be excusable if young programmers started assuming that would be the case on older platform too.