pick better request sequence numbers. by the way, rand(2) says that rand returns n s.t. n ≤ 215 when in fact it returns n ≤ 0x7fff.