Problem with Random seed

Hi,
I had a problem with random number generator, i always got the same numbers for a iteration.
My code is:
curandGenerator_t gen;
curandCreateGenerator(&gen,CURAND_RNG_PSEUDO_DEFAULT);
curandGenerateUniform(gen,auxGPU,100000);

I think that the problem is with the seed, but i dont know how to set it.
I’ve tried the function curandGenerateSeeds(gen), but my program stoped.

I read the documentation, but it dont helped me enough.

Thanks for all.

Happy new eyar!

You want the function curandSetPseudoRandomGeneratorSeed(). Something like:

curandSetPseudoRandomGeneratorSeed(gen, 1234);