mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-01 10:43:32 +00:00
Use srandomdev() for FreeBSD
This commit is contained in:
parent
21c7f9f0ad
commit
ae4ce2c16e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110670
@ -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…
Reference in New Issue
Block a user