BartMassey / bingomatic

Monte-Carlo Bingo simulator in C
Other
1 stars 0 forks source link

Split out rdrand; fix RNG performance issues #2

Closed BartMassey closed 5 years ago

BartMassey commented 5 years ago

The "rdrand" random number stuff in this repo should be moved into its own repo. Also, should be fixed in the non-RDRAND case to use a faster and more reliable generator than lrand48(): preferably something with a large state.

Right now, RDRAND is the limiting factor in performance. Its output is not being used very efficiently, but still it is about 5x slower than multiple calls to lrand48(). Its quality still justifies having it, I guess.

BartMassey commented 5 years ago

Fixed in commit 59a9ec24, which moved to toyrand for PRNG. lrand48() is no longer supported, which is sad but necessary unless a more reliable plan can be worked out: do not want to worry about variate quality please.