Реализация пртокола для сервера g365sfu

This commit is contained in:
RoyceDa
2026-03-14 22:56:24 +02:00
parent b84f69da33
commit 68cdec860d
8 changed files with 561 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
package io.g365sfu.util;
public class StrUtils {
public static String randomString(int length) {
String chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
StringBuilder sb = new StringBuilder();
for (int i = 0; i < length; i++) {
int index = (int) (Math.random() * chars.length());
sb.append(chars.charAt(index));
}
return sb.toString();
}
}