Constructor

NumCosmoMathRNGnew

Declaration [src]

NcmRNG*
ncm_rng_new (
  const gchar* algo
)

Description [src]

Creates a new NcmRNG using the algorithm algo. See the list of algorithms here. If algo is NULL the default algorithm and seed are 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.

Return value

Type: NcmRNG

A new NcmRNG.

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