@Override
    protected String convertBytesToString(final byte[] random) {
        return EncodingUtils.hexEncode(random);
    }
This is {@link HexRandomStringGenerator}.
Hex encoding implementation of the RandomStringGenerator that allows you to define the
length of the random part.

@author Timur Duehr
@since 5.2.0
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/gen/HexRandomStringGenerator.java