3 ms·
Math.random is a web API so you can't just rename it without breaking a large chunk of the web. A non-breaking change would be to upgrade Math.random to be cry
by Retr0id 1y ago
Math.random is a web API so you can't just rename it without breaking a large chunk of the web.
A non-breaking change would be to upgrade Math.random to be cryptographically secure - these days we know how to do this with minimal performance impact.
- chaboud 1y agoThis is a “next time” recommendation. Short of a time machine, we can’t change published names. And, yes, I’d be down with going cryptographically secure (for now) with existing systems.