getRandomHexadecimalText function

String getRandomHexadecimalText(
  1. int byteCount
)

Implementation

String getRandomHexadecimalText(
    int byteCount
    )
{
    return
        getRandomByteArray( byteCount )
            .map( ( byte ) => byte.toRadixString( 16 ).padLeft( 2, '0' ) )
            .join();
}