The implementation must be thread safe.
Tyrus by default uses the following implementation:
new MaskingKeyGenerator() {
private final SecureRandom secureRandom = new SecureRandom();
public int nextInt() {
return secureRandom.nextInt();
}
};
| Modifier and Type | Method and Description |
|---|---|
| public int |
| nextInt | back to summary |
|---|---|
| public int nextInt() Return next random int similarly to
| |