From f9625c64f1ccb020553b984a41e9432ead436435 Mon Sep 17 00:00:00 2001 From: Umjiseung <127853946+Umjiseung@users.noreply.github.com> Date: Sun, 29 Sep 2024 01:15:43 +0900 Subject: [PATCH] =?UTF-8?q?update=20::=20generateULID=20=EB=B0=98=ED=99=98?= =?UTF-8?q?=20=ED=83=80=EC=9E=85=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/gcms/v3/global/common/ulid/ULIDGenerator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gcms/v3/global/common/ulid/ULIDGenerator.java b/src/main/java/com/gcms/v3/global/common/ulid/ULIDGenerator.java index 5f341b2..27a457f 100644 --- a/src/main/java/com/gcms/v3/global/common/ulid/ULIDGenerator.java +++ b/src/main/java/com/gcms/v3/global/common/ulid/ULIDGenerator.java @@ -16,7 +16,7 @@ public Object generate(SharedSessionContractImplementor sharedSessionContractImp return generateULID(); } - public static String generateULID() { + public static byte[] generateULID() { long milliseconds = Instant.now().toEpochMilli(); byte[] bytes = new byte[16]; @@ -24,7 +24,7 @@ public static String generateULID() { buffer.putLong(milliseconds); buffer.putLong(random.nextLong()); - return toULIDString(bytes); + return bytes; } private static String toULIDString(byte[] bytes) {