public class IdentityGenerator
extends java.lang.Object
Constructor and Description |
---|
IdentityGenerator() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
generateID()
Generates a random hexadecimal string that uniquely fits in a
32bit signed integer.
|
static java.lang.String |
generateID(int n)
Generates a random 'n' bit hexadecimal string
|
public static java.lang.String generateID(int n)
n
- size of the hexadecimal stringpublic static java.lang.String generateID()