Fix wrong offsets for random-size packet generation.

- But this fix does not affect occurrence of #8 issue.