Changed CURAND random number generator to generic one