Forum Discussion
Gary_105208
Nimbostratus
Mar 20, 2009How to Generate Visitor ID/UUID
We're trying to drop a unique visitor cookie that we control the persistence (i.e. 6 months age). I don't see anything in the iRule reference that close to helping.
Any recommendation o...
hoolio
Cirrostratus
Mar 16, 2010Thanks for the tip. That's a bit cleaner than the method we came up with in the linked post. You could wrap the expr arguments to save some conversions:
% time {format %09d [expr int(rand() * 1e9)]} 1000
21 microseconds per iteration
% time {format %09d [expr {int(rand() * 1e9)}]} 1000
6 microseconds per iteration
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
