litianqi715 / librf

Automatically exported from code.google.com/p/librf
Other
0 stars 0 forks source link

Issue of rand_r #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I faced a compilation errors in files that have the function call rand_r. 
Since I am trying to compile using .Net 2008, I believe its an stdlib 
problem. 
To get around this error, I have replaced all rand_r(seed) calls by 
srand(*seed) followed by rand().
Even though I do not get any compilation errors now, I would like to 
confirm if I've done the right thing. I understand the code is no longer 
thread safe now.

Manika

Original issue reported on code.google.com by manika.p...@gmail.com on 11 Feb 2009 at 3:34