diff options
author | ache <ache@FreeBSD.org> | 2003-02-11 02:21:41 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2003-02-11 02:21:41 +0000 |
commit | fdbf9035ade76f0ecefa481db9e3f414956a44ac (patch) | |
tree | 40c50e8a25f335f0ce68dea327df1b5b38a73dea /usr.sbin/rtadvd | |
parent | 76e83c6399fe26553ef9e857d466eac2c9ddb63b (diff) | |
download | FreeBSD-src-fdbf9035ade76f0ecefa481db9e3f414956a44ac.zip FreeBSD-src-fdbf9035ade76f0ecefa481db9e3f414956a44ac.tar.gz |
Use srandomdev() for FreeBSD
Diffstat (limited to 'usr.sbin/rtadvd')
-rw-r--r-- | usr.sbin/rtadvd/rtadvd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/rtadvd/rtadvd.c b/usr.sbin/rtadvd/rtadvd.c index 9e8c81e..bc9f9b9 100644 --- a/usr.sbin/rtadvd/rtadvd.c +++ b/usr.sbin/rtadvd/rtadvd.c @@ -221,7 +221,11 @@ main(argc, argv) rtadvd_timer_init(); /* random value initialization */ +#ifdef __FreeBSD__ + srandomdev(); +#else srandom((u_long)time(NULL)); +#endif /* get iflist block from kernel */ init_iflist(); |