diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2003-02-11 02:21:41 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2003-02-11 02:21:41 +0000 |
commit | 9328833aac346344fd4e81edc0130ba7ce3be1e1 (patch) | |
tree | 40c50e8a25f335f0ce68dea327df1b5b38a73dea /usr.sbin/rtadvd | |
parent | c6c9094f0cf729fb4095c4828dc4d5a2f4198068 (diff) | |
download | src-test2-9328833aac346344fd4e81edc0130ba7ce3be1e1.tar.gz src-test2-9328833aac346344fd4e81edc0130ba7ce3be1e1.zip |
Notes
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 9e8c81eaaf77..bc9f9b95691b 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(); |