Generate better Acct-Session-Id
Thu Jun 4 15:38:41 PDT 2015
The current code generates Acct-Session-Id based on the current time. However, some systems without real-time clocks always have the same time when they boot. So the Acct-Session-Id values were getting re-used.
The patch uses os_get_random(), or if that fails, the does an exclusive-or of the time in seconds and microseconds. There microseconds are likely to vary somewhat, even on systems with no real-time clock.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1771 bytes
Desc: not available
More information about the Hostap