mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-26 19:03:48 +01:00
Use srandomdev() for FreeBSD
This commit is contained in:
parent
c6c9094f0c
commit
9328833aac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110668
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user