办学质量监测教学评价系统
zhouweiyi
2025-05-14 584212c5690802dd488924b94a3735e7be34bc6b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package org.ruoyi.util;
 
import org.apache.commons.lang3.RandomStringUtils;
 
import java.util.UUID;
 
/**
 * @author https://www.wdbyte.com
 */
public class KeyUtils {
 
    public synchronized static String key6() {
        return RandomStringUtils.randomAlphanumeric(6);
    }
 
    public synchronized static String key16() {
        return RandomStringUtils.randomAlphanumeric(16);
    }
 
    public static String uuid32() {
        return UUID.randomUUID().toString().replace("-", "");
    }
 
}