3 ms·
I was recently doing some randomised testing, and for some reason the software I was working with chose to use the getrandom() system call for every random numb
by fanf2 5y ago
I was recently doing some randomised testing, and for some reason the software I was working with chose to use the getrandom() system call for every random number. This completely swamped the performance measurement I was trying to make, more than half the time wasted on random numbers.
I switched to PCG with Lemire’s nearly divisionless modular reduction, and the performance numbers were sensible again.