Here you can find the source of GenerateRandomSlug()
Generates a pseudo random 32 character string
public static String GenerateRandomSlug()
//package com.java2s; //License from project: Open Source License import java.util.UUID; public class Main { /**/*from w w w.j a v a2s. c om*/ * <p> * Generates a pseudo random 32 character string * </p> * * @return the random 32 character string */ public static String GenerateRandomSlug() { UUID uniqueSlug = UUID.randomUUID(); return uniqueSlug.toString().replace("-", ""); } }