randomize253State static method

int randomize253State(
  1. int codewordPosition
)

Implementation

static int randomize253State(int codewordPosition) {
  final pseudoRandom = ((149 * codewordPosition) % 253) + 1;
  final tempVariable = 129 + pseudoRandom;
  return tempVariable <= 254 ? tempVariable : tempVariable - 254;
}