initstate_r

Name

initstate_r -- reentrantly initialize a state array for random number generator functions

Synopsis

#include <stdlib.h>

int initstate_r(unsigned int seed, char * statebuf, size_t statelen, struct random_data * buffer);

Description

The interface initstate_r() shall function in the same way as the interface initstate(), except that initstate_r() shall use the data in buffer instead of the global random number generator state.