public class AlternativeJdkIdGenerator extends java.lang.Object implements IdGenerator
UUID.randomUUID()
that uses SecureRandom
only for the
initial seed and Random
thereafter. This provides better performance in
exchange for less securely random id's.Constructor and Description |
---|
AlternativeJdkIdGenerator() |
Modifier and Type | Method and Description |
---|---|
java.util.UUID |
generateId()
Generate a new identifier.
|
public java.util.UUID generateId()
IdGenerator
generateId
in interface IdGenerator