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
ChaCha8 with 256 byte cache can replace nearly all the old random number generators with *better* performance. It's also a good opportunity to replace global locking with thread local state. The cache can be 64 bytes and it still performs really well, just not quite as well.
1
7
Show replies