Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Session Identifier
SUBMITTED BY:
assassin413
DATE:
Oct. 7, 2016, 2:05 p.m.
FORMAT:
Text only
SIZE:
267 Bytes
Raw
Download
Tweet
HITS:
459
Go to comments
Report
import java.security.SecureRandom;
import java.math.BigInteger;
public final class SessionIdentifierGenerator {
private SecureRandom random = new SecureRandom();
public String nextSessionId() {
return new BigInteger(130, random).toString(32);
}
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus