Use srandomdev() for FreeBSD

This commit is contained in:
ache 2003-02-11 02:31:53 +00:00
parent 9f45192eda
commit 68e4eee3d3

View File

@ -297,7 +297,11 @@ usage:
#endif
mypid = getpid();
#ifdef __FreeBSD__
srandomdev();
#else
srandom((int)(clk.tv_sec ^ clk.tv_usec ^ mypid));
#endif
/* prepare socket connected to the kernel.
*/