Use srandomdev() for FreeBSD
This commit is contained in:
parent
21c7f9f0ad
commit
ae4ce2c16e
@ -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