| ▲ | fc417fc802 an hour ago | |
There are various tradeoffs as mentioned in the linked essay. The obvious issue when running on the GPU is synchronization - you need an RNG per thread (or pixel or whatever) whereas a counter based solution means you can call it like rng( shared_key, unique_index ). Algorithms such as philox use a weakened encryption primitive so they aren't as expensive as you might expect. | ||