List of usage examples for org.apache.commons.math.random RandomDataImpl nextHexString
public String nextHexString(int len)
Algorithm Description: hex strings are generated using a 2-step process.
From source file:org.topazproject.ambra.service.password.PasswordDigestService.java
private String createRandomSalt() { final RandomDataImpl random = new RandomDataImpl(); final int saltLength = getSaltLength(); return saltLength == 0 ? "" : random.nextHexString(saltLength); }