Add missing srand() (sranddev() for FreeBSD)
This commit is contained in:
parent
bd344e96cf
commit
0f77478694
@ -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…
x
Reference in New Issue
Block a user