package com.monkeyk.os.domain.shared;

import org.apache.commons.lang.RandomStringUtils;

import java.util.UUID;

/**
 * @author Shengzhao Li
 */
public abstract class GuidGenerator {


    private GuidGenerator() {
    }

    public static String generate() {
        return UUID.randomUUID().toString().replaceAll("-", "");
    }


    public static String generateClientId() {
        return RandomStringUtils.random(20, true, true);
    }

    public static String generateClientSecret() {
        return RandomStringUtils.random(20, true, true);
    }

}
@@ -87,32 +87,8 @@
 s;%0A%0A
-import java.util.UUID;%0A%0A
 /**%0A
@@ -249,55 +249,47 @@
 urn 
-UUID.randomUUID().toString().replaceAll(%22-%22, %22%22
+RandomStringUtils.random(32, true, true
 );%0A 

Upgrade random generate