Add missing srand() (sranddev() for FreeBSD)

This commit is contained in:
Andrey A. Chernov 2003-02-11 02:09:05 +00:00
parent bd344e96cf
commit 0f77478694
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110666

View File

@ -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);