Last active
August 29, 2015 14:08
-
-
Save shawnsi/baf05bd37a7fcd04eeeb to your computer and use it in GitHub Desktop.
F5 Transaction ID
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
when HTTP_REQUEST { | |
# Initialize the hex string variable | |
set hex "" | |
# Loop to create 8 random bytes | |
for {set i 0} {$i<8} {incr i} { | |
# Create a byte from the PRNG | |
set byte [expr { int(rand() * 256) }] | |
# Append the formatted byte to the hex string | |
append hex [format %x $byte] | |
} | |
HTTP::header replace X-Transaction $hex | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey bro, there's no
pow
orfloor
functions in your F5...