diff options
author | ache <ache@FreeBSD.org> | 2003-02-11 02:09:05 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2003-02-11 02:09:05 +0000 |
commit | ebb7bc433441055de657c0a26aa5406fd6d38047 (patch) | |
tree | 436ab143ce4766bb048a99a6760e3a7c96cf503d | |
parent | 1893511c0527a6566ee2c5e1e004e0ed478bcced (diff) | |
download | FreeBSD-src-ebb7bc433441055de657c0a26aa5406fd6d38047.zip FreeBSD-src-ebb7bc433441055de657c0a26aa5406fd6d38047.tar.gz |
Add missing srand() (sranddev() for FreeBSD)
-rw-r--r-- | usr.sbin/route6d/route6d.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.sbin/route6d/route6d.c b/usr.sbin/route6d/route6d.c index 98e4647..ee577eb 100644 --- a/usr.sbin/route6d/route6d.c +++ b/usr.sbin/route6d/route6d.c @@ -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); |