提交 d22e820a 编写于 作者: J jurgen

QMDB model fix

上级 b75dc855
......@@ -1023,7 +1023,9 @@ public class DataSourceDescriptor
public static String generateNewId(DriverDescriptor driver)
{
return driver.getId() + "-" + System.currentTimeMillis() + "-" + new Random().nextInt();
long rnd = new Random().nextLong();
if (rnd < 0) rnd = -rnd;
return driver.getId() + "-" + Long.toHexString(System.currentTimeMillis()) + "-" + Long.toHexString(rnd);
}
private void firePropertyChange()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册