Constructor

NumCosmoMathRNGseeded_new

Declaration [src]

NcmRNG*
ncm_rng_seeded_new (
  const gchar* algo,
  gulong seed
)

Description [src]

Creates a new NcmRNG using the algorithm algo. See the list of algorithms here. If algo is NULL the default algorithm is used. See this link for more details.

Parameters

algo

Type: const gchar*

Algorithm name.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
seed

Type: gulong

Seed used to initialize the PRNG.

Return value

Type: NcmRNG

A new NcmRNG.

The caller of the function takes ownership of the data, and is responsible for freeing it.