21 ms·
You shouldn't be confused if you read the article. The actual PRNG is implemented in rand_r() and is the first place most people would look. The issue is in the
by AlotOfReading 5y ago
You shouldn't be confused if you read the article. The actual PRNG is implemented in rand_r() and is the first place most people would look. The issue is in the reentrant wrapper in rand().
- unwind 5y agoI seem to be catching downvotes, but I did read the article. The text right before the rand_r() code box reads: This is the code of the rand() function, which looks familiar: That has to count as at least a typo, but I think it's a bigger editing-type problem.