Re:Make your program slower with threads
by ScottBurson on Sunday December 07, 2014 @02:10PM
(#8713193)
You are correct, and 'fche is mistaken. Each 'random_data' object is accessed only from a single thread.
random_r's internal state is all, from what I can see of the implementation, entirely passed in by the caller. Implementation here: https://sourceware.org/git/?p=glibc.git;a=blob;f=stdlib/rand...