public class RandomUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static SecureRandom |
SECURE_RANDOM
安全的随机算法
|
| Constructor and Description |
|---|
RandomUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
buildSequenceNo(long nextValue,
int length)
补足n位,如果不够就左边补0, 超过n位的截取前n位
|
static String |
uuid()
生成 uuid 随机字符串
|
public static final SecureRandom SECURE_RANDOM
Copyright © 2018–2021. All rights reserved.