Problem with Random seed

I had a problem with random number generator, i always got the same numbers for a iteration.
My code is:
curandGenerator_t gen;

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);