Adelsbach/VSIPL
Core Programming Reference Guide
DD-00016-015
Core

This manual is preliminary and incomplete.
While our Core implementation implements all functions given in the standard we are still working on completing this documentation.

Please refer to the VSIPL standard for a complete function reference of the Core profile until we have completed work on this documentation.

3.1.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 
}