PERF: improvements to random number generation in CUDA backend