Here you can find the source of getRandomString()
static String getRandomString()
//package com.java2s; import java.security.SecureRandom; public class Main { static String getRandomString() { final SecureRandom random = new SecureRandom(); return String.valueOf(random.nextLong()); }/*from ww w . ja v a 2 s . co m*/ }