4 ms·
> But that comes at the cost of speed That is mostly a myth. I mean... technically, yes. But the cost is so marginal that you will have a hard time even measu
by hannob 1y ago
> But that comes at the cost of speed
That is mostly a myth.
I mean... technically, yes. But the cost is so marginal that you will have a hard time even measuring it unless you generate gigabytes of data.
For pretty much all common use cases like generation of ids, tokens, etc., you can use a secure random number generator and it will not impact your performance in any meaningful way.
- tialaramex 1y agoIt's also the exact same silly argument as for the memory unsafety. Incorrect isn't faster, it's just wrong, I can have wrong instantly and you're not faster than that, or smaller, or cheaper, or easier to understand. So you're just much worse.