Method

NumCosmoMathRNGset_random_seed

Declaration [src]

void
ncm_rng_set_random_seed (
  NcmRNG* rng,
  gboolean allow_colisions
)

Description [src]

Sets the algorithm seed using a PRNG seeded by /dev/urandom (Unix/Linux) or current time, when the first is not available (see #g_rand_new). If allow_colisions is FALSE this function will set the first unused seed generated.

Parameters

allow_colisions

Type: gboolean

A gboolean.