Daniel Stenberg wrote:
>
> The Linux man page suggests using rand_r() or even better drand48_r()
> instead. What's the best alternative on Solaris 9?
At least rand_r() and drand48() are "MT-Level = Safe" on Solaris 9. I
think rand_r() would be the most portable, though it's far from
cryptographically safe. But if rand() was safe enough for the use, then
rand_r() should be okay, too.
-- Eino TuominenReceived on 2008-03-28