added curand bits