class Salt
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static Salt |
instance |
private static LogAdapter |
logger |
private long |
salt |
Modifier | Constructor and Description |
---|---|
protected |
Salt()
Default constructor, initializes the salt to a random value.
|
Modifier and Type | Method and Description |
---|---|
static Salt |
getInstance()
Get a initialized Salt object.
|
long |
getNext()
Get the next value of the salt by adding one to its current value.
|
private long salt
private static Salt instance
private static final LogAdapter logger
protected Salt()
public static Salt getInstance()
public long getNext()