Conversation

Replying to and
LCG being recommended as best practice? 🤦 Probably ok if you use a 128+ bit one and only keep the upper 32 bits of each output. But CTR mode cipher makes a much better statistically safe deterministic PRNG.
2
4
Even a completely portable implementation without SIMD is faster than most of the weak random number generators in active use. There are a few extremely fast generators that are better but it's a slim niche and those have significant sacrifices. It just needs a little cache.
1
4
We used the approach in arxiv.org/abs/1805.10941 but I think there have been some further advances with even better performance since then. It already performs well enough that it isn't a priority for us though, especially with all the fancy optional security features enabled.
2