long random_r(unsigned long *__ctx)
Variant of random() that stores the context in the user-supplied variable located at ctx instead of a static library variable so the function becomes re-entrant.
ctx