Skip to content

Commit 2b43881

Browse files
committed
fix uuid to be 16-byte instead of 8-byte
1 parent 326a63f commit 2b43881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/sunnycode/hash/file2/UuidHelper.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
public class UuidHelper {
77
public static byte[] uuidToBytes(UUID uuid) {
8-
ByteBuffer buf = ByteBuffer.allocate(8);
8+
ByteBuffer buf = ByteBuffer.allocate(16);
99

1010
buf.putLong(uuid.getMostSignificantBits());
1111
buf.putLong(uuid.getLeastSignificantBits());

0 commit comments

Comments
 (0)