@Test public void testRandom() throws Exception { RandomString randomString = new RandomString(); assertThat(randomString.nextString(), not(randomString.nextString())); }
public String nextString() { char[] buffer = new char[length]; for (int index = 0; index < length; index++) { buffer[index] = SYMBOL[random.nextInt(SYMBOL.length)]; } return new String(buffer); }
RandomString { public String nextString() { char[] buffer = new char[length]; for (int index = 0; index < length; index++) { buffer[index] = SYMBOL[random.nextInt(SYMBOL.length)]; } return new String(buffer); } }
RandomString { public String nextString() { char[] buffer = new char[length]; for (int index = 0; index < length; index++) { buffer[index] = SYMBOL[random.nextInt(SYMBOL.length)]; } return new String(buffer); } RandomString();  RandomString(int length); }
RandomString { public String nextString() { char[] buffer = new char[length]; for (int index = 0; index < length; index++) { buffer[index] = SYMBOL[random.nextInt(SYMBOL.length)]; } return new String(buffer); } RandomString();  RandomString(int length); static String make(); static String make(int length); static String hashOf(int value); String nextString(); }
RandomString { public String nextString() { char[] buffer = new char[length]; for (int index = 0; index < length; index++) { buffer[index] = SYMBOL[random.nextInt(SYMBOL.length)]; } return new String(buffer); } RandomString();  RandomString(int length); static String make(); static String make(int length); static String hashOf(int value); String nextString(); static final int DEFAULT_LENGTH; }