Merge random number generators for OpenCL and CUDA backends