Adelsbach/VSIPL
Core Lite Programming Reference Guide
DD-00014-015
Core Lite

13.2 vsip_randdestroy - Destroy a Random Number Generator State

int vsip_randdestroy(vsip_randstate *state);
Description

This function destroys the random number generator state state and frees all associated resources. After calling this function, the random number generator state should no longer be used.

Parameters
Return Value
Example

vsip_randstate *rand_state; 
int result; 
 
// Assuming rand_state has been properly initialized 
result = vsip_randdestroy(rand_state); 
 
if (result != 0) { 
    // Handle error 
}