generate shorter message id.