提交 8aaf1c50 authored 作者: Thomas Mueller's avatar Thomas Mueller

StringUtils.convertBytesToHex

上级 65019aca
...@@ -363,7 +363,7 @@ public class SessionRemote extends SessionWithState implements DataHandler { ...@@ -363,7 +363,7 @@ public class SessionRemote extends SessionWithState implements DataHandler {
String[] servers = StringUtils.arraySplit(server, ',', true); String[] servers = StringUtils.arraySplit(server, ',', true);
int len = servers.length; int len = servers.length;
transferList.clear(); transferList.clear();
sessionId = StringUtils.convertBytesToString(MathUtils.secureRandomBytes(32)); sessionId = StringUtils.convertBytesToHex(MathUtils.secureRandomBytes(32));
// TODO cluster: support more than 2 connections // TODO cluster: support more than 2 connections
boolean switchOffCluster = false; boolean switchOffCluster = false;
try { try {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论