otsAdrs.setHashAdress(i+s-1);
otsAdrs.setKeyBit(false);
bitmask = randomGenerator(seed, otsAdrs.getAddress(), tmp.length);
otsAdrs.setKeyBit(true);
key = randomGenerator(seed, otsAdrs.getAddress(), tmp.length);
<BUG>for(int j = 0; j < tmp.length; i++){
</BUG>
tmp[j] ^= bitmask[j];
}
tmp = hashMessage(key, tmp);

otsAdrs.setHashAdress(i+s-1);
otsAdrs.setKeyBit(false);
bitmask = randomGenerator(seed, otsAdrs.getAddress(), tmp.length);
otsAdrs.setKeyBit(true);
key = randomGenerator(seed, otsAdrs.getAddress(), tmp.length);
for(int j = 0; j < tmp.length; j++){
tmp[j] ^= bitmask[j];
}
tmp = hashMessage(key, tmp);
