by dullcrisp · 2y ago · 0 comments
Are there any easy ways to mitigate this though? What about say adding 2^64 at each step instead of 2?
Probably the most reasonable thing to do would be to use a Mersenne twister or other PRNG to generate a stream of random bytes. Would be plenty fast and should hopefully have no relevant pattern. No reason you should need real randomness from the OS after the initial seed.