diff options
author | Conrad Meyer <cem@FreeBSD.org> | 2019-12-13 05:11:34 +0000 |
---|---|---|
committer | Conrad Meyer <cem@FreeBSD.org> | 2019-12-13 05:11:34 +0000 |
commit | d05c99c5474863adf78a0a0f019b9a54571814af (patch) | |
tree | a0a4ef9cf264f65929cf949ba925b944b5b9781c /lib/libtacplus/taclib.c | |
parent | d449578f86ece07f8f6071bb5a706db44966b585 (diff) | |
download | src-d05c99c5474863adf78a0a0f019b9a54571814af.tar.gz src-d05c99c5474863adf78a0a0f019b9a54571814af.zip |
libtacplus: Remove bogus srandomdev+random
Replace with arc4random.
TACAS+ is a 1993 Cisco extension to the 1984 TACAS. Is this something we want
in base still? The directory has been substantively unmaintained since 2002,
at least.
Notes
Notes:
svn path=/head/; revision=355696
Diffstat (limited to 'lib/libtacplus/taclib.c')
-rw-r--r-- | lib/libtacplus/taclib.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libtacplus/taclib.c b/lib/libtacplus/taclib.c index c11674ff60d6..8a7e78bc37e4 100644 --- a/lib/libtacplus/taclib.c +++ b/lib/libtacplus/taclib.c @@ -429,10 +429,10 @@ gen_session_id(struct tac_msg *msg) { int r; - r = random(); + r = arc4random(); msg->session_id[0] = r >> 8; msg->session_id[1] = r; - r = random(); + r = arc4random(); msg->session_id[2] = r >> 8; msg->session_id[3] = r; } @@ -1051,7 +1051,6 @@ tac_open(void) } init_srvr_str(&h->srvr_msg); init_srvr_str(&h->srvr_data); - srandomdev(); } return h; } |