Generate event_id

Fixes #153