3 ms·
That's true for libc's naive rand() which is used by Python, JS, Ruby, PHP, etc. But stock C++ has many options for the random number generation algorithm: ht
by zelly 7y ago
That's true for libc's naive rand() which is used by Python, JS, Ruby, PHP, etc.
But stock C++ has many options for the random number generation algorithm:
https://en.cppreference.com/w/cpp/header/random https://en.cppreference.com/w/cpp/header/random
As does Java and .NET. Without any dependencies and guaranteed to be portable.
> Note that number of dependencies doesn't mean anything. Some crates are split into tiny deps for each feature, so that you can reduce binary size and compile time if you disable optional features.
In theory I agree. It just seems like one of the persistent unsolved problems in software is dependency hell (spawning the whole containerization movement), so I'd like to avoid it if I could.