next up previous contents index
Next: 12.1.2 random: Produce a Up: 12.1 oskit_random: Interface for Previous: 12.1 oskit_random: Interface for

12.1.1 create: Create a new pseudo-random number generator

 

SYNOPSIS

#include <oskit/com/random.h>

oskit_error_t oskit_random_create([out] oskit_random_t **out_r);

DESCRIPTION

Create a new oskit_random object in the default seed state.

PARAMETERS

out_r
Upon success, the new oskit_random object reference is returned in *out_r.

RETURNS

Upon success, returns 0. Upon failure, the return value is set to a code indicating the reason for failure. (See <oskit/error.h>.)



Utah Flux Research Group