feat: 移除Nonce锁
parent
ca5d8acd28
commit
209ca6bb9b
|
|
@ -7,8 +7,6 @@ import java.util.UUID;
|
|||
* @since 2.0.0
|
||||
*/
|
||||
public class Nonce {
|
||||
private static final Object lock = new Object();
|
||||
|
||||
private Nonce() {
|
||||
}
|
||||
|
||||
|
|
@ -16,8 +14,6 @@ public class Nonce {
|
|||
* @return nonce 随机串
|
||||
*/
|
||||
public static String ofNonce() {
|
||||
synchronized (lock) {
|
||||
return UUID.randomUUID().toString().replace("-", "").toLowerCase();
|
||||
}
|
||||
return UUID.randomUUID().toString().replace("-", "").toLowerCase();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue