Remove nonstandard C function rand_r
Disable checking use of thread safe function in style check.
The list of replacable thread safe functions are linux specified functions. We need to consider other platforms.