]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
Simplify ID allocation so that we don't loop over all IDs
authorAlan T. DeKok <aland@freeradius.org>
Fri, 16 Aug 2013 13:48:24 +0000 (09:48 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 16 Aug 2013 13:48:24 +0000 (09:48 -0400)
commita2ac633525c69a94ca3e1f91817a4b421f5375e6
tree2af5da27a1ba31f72e0b2c22b40b53ff5ca03521
parent7efdd94aa6b23dedb94a452d3b521a146edb5c61
Simplify ID allocation so that we don't loop over all IDs

Instead, we allocate a 256-entry array of random IDs (all unique)
and gradually use them.  When the array is empty, we re-fill it.
src/lib/packet.c