page = arthur o'dwyer – stuff mostly about c++
url = https://quuxplusone.github.io/blog
mt19937
; introducing
xoshiro256ss
antipatterns pearls random-numbers
TLDR:
std::mt19937
is half the speed of a good PRNG (and 500 times slower to seed, for what that’s worth). These days I copy-and-paste xoshiro256ss.h when I need random numbers for a project.