public static Uuid randomUuid() {
        Uuid uuid = unsafeRandomUuid();
        while (RESERVED.contains(uuid) || uuid.toString().startsWith("-")) {
            uuid = unsafeRandomUuid();
        }
        return uuid;
    }
Static factory to retrieve a type 4 (pseudo randomly generated) UUID.

This will not generate a UUID equal to 0, 1, or one whose string representation starts with a dash ("-")
clients/src/main/java/org/apache/kafka/common/Uuid.java