srandom_r

Name

srandom_r -- reentrantly set the seed for a new sequence of pseudorandom numbers

Synopsis

#include <stdlib.h>

int srandom_r(unsigned int seed, struct random_data * buffer);

Description

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