Skip to content

Instantly share code, notes, and snippets.

@LeeSanghoon
LeeSanghoon / ShortUUID.java
Last active May 29, 2023 19:35
Generate short UUID
import java.nio.ByteBuffer;
import java.util.UUID;
/**
* Generate short UUID (13 characters)
*
* @return short UUID
*/
public static String shortUUID() {
UUID uuid = UUID.randomUUID();