Forum Discussion
Kai_Wilke
Dec 07, 2015MVP
Hi Piotr,
using a [expr {[crc32 $COOKIE_VALUE] % $NUMBER_OF_TABLES}] to splitt the master table would work like a charm and is always safe to use.
Using a [string range $COOKIE_VALUE 0 0] would be little faster, but it's not as variable (e.g. configurable table number) as CRC and also strongly depends on the format of the provided cookie values.
Cheers, Kai