public class AlternativeJdkIdGenerator extends Object implements IdGenerator
IdGenerator
that uses SecureRandom
for the initial seed and
Random
thereafter, instead of calling UUID.randomUUID()
every
time as JdkIdGenerator
does.
This provides a better balance between securely random ids and performance.Constructor and Description |
---|
AlternativeJdkIdGenerator() |
public UUID generateId()
IdGenerator
generateId
in interface IdGenerator