diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2003-02-11 02:09:05 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2003-02-11 02:09:05 +0000 |
| commit | 0f7747869462ef0ac5c7617eea530f47bdb992ae (patch) | |
| tree | 436ab143ce4766bb048a99a6760e3a7c96cf503d /usr.sbin | |
| parent | bd344e96cf3883f99e48893fd40e44a116399009 (diff) | |
Notes
Diffstat (limited to 'usr.sbin')
| -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 98e4647d7484f..ee577eb0fe592 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); |
