feat: 移除Nonce锁

main
13009 2024-08-06 17:10:18 +08:00
parent ca5d8acd28
commit 209ca6bb9b
1 changed files with 1 additions and 5 deletions

View File

@ -7,8 +7,6 @@ import java.util.UUID;
* @since 2.0.0 * @since 2.0.0
*/ */
public class Nonce { public class Nonce {
private static final Object lock = new Object();
private Nonce() { private Nonce() {
} }
@ -16,8 +14,6 @@ public class Nonce {
* @return nonce * @return nonce
*/ */
public static String ofNonce() { public static String ofNonce() {
synchronized (lock) {
return UUID.randomUUID().toString().replace("-", "").toLowerCase(); return UUID.randomUUID().toString().replace("-", "").toLowerCase();
} }
} }
}