public class RandomString
extends java.lang.Object
UUID
, because UUID has low entropy density with only 4 bits per character, and dashes.Constructor and Description |
---|
RandomString() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
partTraceId() |
static java.lang.String |
randomCorrelationId()
According to the internet, there are ~7.5e18 grains of sand on all the beaches on earth.
|
static java.lang.String |
randomString(int length) |
public static java.lang.String randomCorrelationId()
public static java.lang.String partTraceId()
public static java.lang.String randomString(int length)
length
- the desired length of the returned random string.