Rate This Document
Findability
Accuracy
Completeness
Readability

Initialization Function

Initialize the policy structure and set the random number seed.

Interface Definition

KmlVslResult kml_vsl_init(VslPolicy **policy, RNGtype type, uint32_t seed);

Parameters

Parameter

Type

Description

Input/Output

policy

Level-2 pointer of data of the VslPolicy type

Level-2 pointer that points to the random number generator structure

Output

type

RNGtype

Algorithm for generating random numbers

Input

seed

uint32_t

Random number seed

Input

Dependencies

#include "kvsl.h"

Examples

#include <time.h>
#include <stdlib.h>
#include "kvsl.h"
int main()
{
    VslPolicy *policy;
    kml_vsl_init(&policy, LECUYER_CMRG, time(NULL));
    kml_vsl_destroy(policy);
}