如何在Java中生成不可预测的整数唯一标识符?
任何时候都是独一无二的:
int uniqueId = (int) (System.currentTimeMillis() & 0xfffffff);
System.currentTimeMillis()