Hacker News new | past | comments | ask | show | jobs | submit login

The world seems full of APIs that make it easy to avoid global state. Most of my usage of randomness has been through things like rust's rand::thread_rng or Java's ThreadLocalRandom. (In fact I think even java.util.Random uses its own state: the docs call out perf issues but only if you share the same instance across threads.)

Honorable (?) mention goes to (client-side) JavaScript - it's harder to have threading issues if you only have a single thread to work with!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: