Set Acct-Session-Id from os_get_random() instead of os_get_time()
authorAlan T. DeKok <aland@freeradius.org>
Thu, 4 Jun 2015 20:53:06 +0000 (16:53 -0400)
committerJouni Malinen <j@w1.fi>
Sat, 6 Jun 2015 14:23:43 +0000 (17:23 +0300)
commitf13e815491de4a522919569a696ff679f8c15419
tree27f9b4b73c17516aa6d42c113aa85f921cc4337c
parent92f190a0acf1d8cfd5fddf12b7c2034a7f37b16a
Set Acct-Session-Id from os_get_random() instead of os_get_time()

So that systems with bad clocks will send random session IDs,
instead of always ones starting at the same second.

If os_get_random() isn't available, use os_get_time(). But also
mix in now.tv_usec, so that the accounting session ID is more
likely to be globally and temporally unique.

Signed-off-by: Alan DeKok <aland@freeradius.org>
src/ap/accounting.c