Use srandomdev() for FreeBSD

This commit is contained in:
Andrey A. Chernov 2003-02-11 02:21:41 +00:00
parent c6c9094f0c
commit 9328833aac
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110668

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