Forum Discussion
curious results from md5
Dear all,
I was following this threath, since I was facing a simular issue.
when CLIENT_ACCEPTED {
binary scan [md5 [IP::client_addr]] w1 clienthash
set picked [lindex [active_members -list hackit_pool] [expr {$clienthash % [active_members hackit_pool]}]]
pool hackit_pool member [lindex $picked 0] [lindex $picked 1]
}
the issue was that the binary Scan did not generate a Numeric Value but a Binary Value.
binary scan [md5 [IP::client_addr]] w1 clienthash
generates a Value $clienthash available for the expression.
http://www.tcl.tk/man/tcl8.4/TclCmd/binary.htmM24
Kind Regards
jwiesmann
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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