Generate better Acct-Session-Id
Alan DeKok
aland
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...
Name: 0001-Set-Acct-Session-Id-from-os_get_random-instead-of-os.patch
Type: application/octet-stream
Size: 1771 bytes
Desc: not available
URL: <http://lists.shmoo.com/pipermail/hostap/attachments/20150604/db40757b/attachment.obj>
More information about the Hostap
mailing list