random_r

Name

random_r -- generate random number

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 deprecate this interface.