random_r

Name

random_r -- generate random number (DEPRECATED)

Synopsis

int random_r(struct random_data * restrict buf, int32_t * restrict result);

Description

random_r() is a reentrant version of random(), which generates a pseudorandom number.

Future Directions

Since this function requires support from other functions not specified in this specification (most notably initstate_r()), a future version of this specification may remove this interface.