m2v2: generate sequence number for events