]> git.ipfire.org Git - thirdparty/hostap.git/commit
os_unix: Seed random() for os_random()
authorJouni Malinen <j@w1.fi>
Fri, 28 Feb 2020 20:54:36 +0000 (22:54 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 28 Feb 2020 20:59:32 +0000 (22:59 +0200)
commit167205d455cef9832c5dfc887afb22a7f2f2d8a8
tree5b09485a4315a9281495a38b143d72995726fb01
parent54bc5db16e8dfc99ebb4b97391324cfec72ba997
os_unix: Seed random() for os_random()

While the users of os_random() do not really need strong pseudo random
numebrs, there is no significant harm in seeding random() with data from
os_get_random(), i.e., /dev/urandom, to get different sequence of not so
strong pseudo random values from os_random() for each time the process
is started.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/utils/os_unix.c