WordPress at Your Fingertips
function is not described

wc_rand_hash() WC 2.4.0

Generate a rand hash.

No Hooks.

Return

String.

Usage

wc_rand_hash();

Changelog

Since 2.4.0 Introduced.

Code of wc_rand_hash() WC 5.8.0

function wc_rand_hash() {
	if ( ! function_exists( 'openssl_random_pseudo_bytes' ) ) {
		return sha1( wp_rand() );
	}

	return bin2hex( openssl_random_pseudo_bytes( 20 ) ); // @codingStandardsIgnoreLine
}