Initialize random seed during CUDA initialization.

Initialize the random seed for all GPUs during CUDA initialization rather than
when the device is set.
As requested in #42