bsnmpd(1): Replace dubious srandomdev+random(3) with arc4random(3)
This commit is contained in:
parent
d05c99c547
commit
44d780e32b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355697
@ -1615,9 +1615,7 @@ main(int argc, char *argv[])
|
|||||||
progargs = argv;
|
progargs = argv;
|
||||||
nprogargs = argc;
|
nprogargs = argc;
|
||||||
|
|
||||||
srandomdev();
|
snmp_serial_no = arc4random();
|
||||||
|
|
||||||
snmp_serial_no = random();
|
|
||||||
|
|
||||||
#ifdef USE_TCPWRAPPERS
|
#ifdef USE_TCPWRAPPERS
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user