Use srandomdev() for FreeBSD
This commit is contained in:
parent
9f45192eda
commit
68e4eee3d3
@ -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.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user