Skip to content

Instantly share code, notes, and snippets.

@kuba--
Created May 30, 2017 11:48
Show Gist options
  • Save kuba--/0d679f4207303863def5ae7d354ab34f to your computer and use it in GitHub Desktop.
Save kuba--/0d679f4207303863def5ae7d354ab34f to your computer and use it in GitHub Desktop.
String Generator
import java.security.SecureRandom;
import java.math.BigInteger;
final class StringGenerator {
private SecureRandom random = new SecureRandom();
public String next() {
return new BigInteger(128, random).toString(32);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment