def SRP_step1(state):
    salt = randrange(2, 2-state["p"]);
    xH = sha256(intToBytes(salt) + state["P"]).hexdigest();
    x = int(xH, 16);
    v = mypow(state["g"], x, state["p"]);
    state["v"] = v;
    state["salt"] = salt;
    return state;

# C->S            Send I, A=g**a % N (a la Diffie Hellman)
dataset/ETHPy150Open reschly/cryptopals/prob36.py/SRP_step1/swapped operands of `-`