public void reset() {
	    // The key-scheduling algorithm
	    for (int i = 0; i < 256; i++) {
	        state[i] = (byte)i;
	    }
	    int j = 0;
	    for (int i = 0; i < 256; i++) {
	        j = (j + state[i] + key[i % key.length]) & 0xff;
	        byte temp = state[i];
	        state[i] = state[j];
	        state[j] = temp;
	    }
	    
	    x = 0;
	    y = 0;
	}
Resets the cipher to start encrypting a new stream of data.
src/main/java/core/packetproxy/common/ARC4.java