Initialization Function
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 |
Dependency
#include "kvsl.h"
Example
#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);
}
Parent topic: Function Syntax