Generate an AggregateId for flushed events.