Add missing srand() (sranddev() for FreeBSD)
This commit is contained in:
parent
bd344e96cf
commit
0f77478694
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110666
@ -376,6 +376,11 @@ main(argc, argv)
|
||||
fatal("No loopback found");
|
||||
/*NOTREACHED*/
|
||||
}
|
||||
#ifdef __FreeBSD__
|
||||
sranddev();
|
||||
#else
|
||||
srand((unsigned)(time(NULL)^(pid<<16)));
|
||||
#endif
|
||||
loopifindex = loopifcp->ifc_index;
|
||||
for (ifcp = ifc; ifcp; ifcp = ifcp->ifc_next)
|
||||
ifrt(ifcp, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user