generate msg uid