Here you can find the source of generateRequestId()
public static String generateRequestId()
//package com.java2s; //License from project: Open Source License import java.util.UUID; public class Main { /**/*from w w w .j a v a 2 s .c o m*/ * Returns a random 32 character request id */ public static String generateRequestId() { String uuid = UUID.randomUUID().toString(); String requestId = uuid.replace("-", ""); return requestId; } }