Function cudarc::curand::result::set_seed

source ·
pub unsafe fn set_seed(
    generator: curandGenerator_t,
    seed: u64
) -> Result<(), CurandError>
Expand description

Set the seed value of the pseudo-random number generator.

See cuRAND docs

Safety

The generator must be allocated and not already freed.