Use srandomdev() for FreeBSD

This commit is contained in:
Andrey A. Chernov 2003-02-11 02:31:53 +00:00
parent 21c7f9f0ad
commit ae4ce2c16e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110670

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.
*/