1. A hashing method in a hashing module having a plurality of registers for storing random numbers, comprising: receiving a packet; extracting a set of selectors from the received packet; receiving a first set of selector bits in a selector register, wherein a number of bits in the first set of selector bits is less than a total number of bits in the extracted set of selectors, and wherein the number of bits in the first set of selector bits is configurable; storing an initial random number in each of the plurality of random number registers; associating each initial random number with a bit in the first set of selector bits; for each random number register, selecting the initial random number if the associated selector bit for the random number register has a first value; XORing the selected initial random numbers to generate a hash value; and storing the generated hash value.