nextHexString

Returns a random string of exactly length lowercase hexadecimal digits (0-9a-f).

Each digit is chosen independently and uniformly at random from RandomAlphabets.HEX_LOWER. A length of zero yields the empty string.

Parameters

length

the number of hex digits to generate, must be non-negative.

Throws