|Synopsis:||Don't use the functions rand. Instead use the re-entrant counterpart rand_r.|
Non-reentrant functions can cause problems when multiple threads are used or memory is shared between tasks (such as on VxWorks).
#include <stdlib.h> int rand(void); /* WRONG */ int rand_r(unsigned *seed); /* RIGHT */
Function rand_r is not available on VxWorks in kernel space.