From 9328833aac346344fd4e81edc0130ba7ce3be1e1 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Tue, 11 Feb 2003 02:21:41 +0000 Subject: [PATCH] Use srandomdev() for FreeBSD --- usr.sbin/rtadvd/rtadvd.c | 4 ++++ 1 file changed, 4 insertions(+) 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();