generate a random value with unlang?

Phil Mayers p.mayers at imperial.ac.uk
Wed Mar 21 12:01:51 CET 2012


On 21/03/12 10:49, Matthew Newton wrote:
> On Wed, Mar 21, 2012 at 11:07:16AM +0100, Stefan Winter wrote:
>> The value should be new for every Access-Accept. I wonder how to
>> generate such a random value with unlang. Is there some {%rand} or
>> anything like that?
>
> http://freeradius.org/press/index.html
>
> 30 September 2011 - Version 2.1.12 has been released.
>
> ...
>
> * Added support for %{rand:...}, which generates a uniformly
>   distributed number between 0 and the number you specify.

...ah. Obviously, ignore my email then! I must have an old git branch 
checked-out!


More information about the Freeradius-Users mailing list