Use srandomdev() for FreeBSD

This commit is contained in:
Andrey A. Chernov 2003-02-11 02:21:41 +00:00
parent c6c9094f0c
commit 9328833aac

View File

@ -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();