56 lines
1.3 KiB
Java
56 lines
1.3 KiB
Java
package com.tencent.connect.auth;
|
|
|
|
import com.ubt.jimu.base.http.interceptor.CommonParamsInterceptor;
|
|
import java.util.HashMap;
|
|
|
|
/* compiled from: ProGuard */
|
|
/* loaded from: classes.dex */
|
|
public class b {
|
|
private static int b;
|
|
public static b c;
|
|
public HashMap<String, a> a = new HashMap<>();
|
|
|
|
/* compiled from: ProGuard */
|
|
public static class a {
|
|
}
|
|
|
|
static {
|
|
b.class.desiredAssertionStatus();
|
|
b = 0;
|
|
}
|
|
|
|
public static b b() {
|
|
if (c == null) {
|
|
c = new b();
|
|
}
|
|
return c;
|
|
}
|
|
|
|
public static int c() {
|
|
int i = b + 1;
|
|
b = i;
|
|
return i;
|
|
}
|
|
|
|
public String a(a aVar) {
|
|
int c2 = c();
|
|
try {
|
|
this.a.put("" + c2, aVar);
|
|
} catch (Throwable th) {
|
|
th.printStackTrace();
|
|
}
|
|
return "" + c2;
|
|
}
|
|
|
|
public String a() {
|
|
int ceil = (int) Math.ceil((Math.random() * 20.0d) + 3.0d);
|
|
char[] charArray = CommonParamsInterceptor.CHARACTER.toCharArray();
|
|
int length = charArray.length;
|
|
StringBuffer stringBuffer = new StringBuffer();
|
|
for (int i = 0; i < ceil; i++) {
|
|
stringBuffer.append(charArray[(int) (Math.random() * length)]);
|
|
}
|
|
return stringBuffer.toString();
|
|
}
|
|
}
|