Switch the userform to use \Core\random_hex instead of \Core\RandomHex.