1. In an electronic device having a processor coupled to a computer readable memory for implementing steps, a method of calculating a mask for a desired code offset in a linear feedback shift register (LFSR), the method comprising the steps of: a) receiving the desired code offset from a reference code state chosen for a first field; b) calculating a first field vector in the first field with the desired code offset sought in the first field; and c) transforming the first field vector into a second field vector in a second field, the second field vector operable as a mask in the LFSR configured in the first field.