mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-02 02:43:59 +08:00
优化ID生成策略
This commit is contained in:
@@ -42,7 +42,7 @@ public class RandomIdGenerator implements IDGenerator<String> {
|
||||
value[5] = (byte) (now);
|
||||
|
||||
nextBytes(value, 6, 8);
|
||||
nextBytes(value, 9, 15);
|
||||
nextBytes(value, 8, 16);
|
||||
nextBytes(value, 16, 24);
|
||||
|
||||
return Base64.getUrlEncoder().encodeToString(value);
|
||||
|
||||
Reference in New Issue
Block a user