WordPress at a glance
function is not described

wc_rand_hash() WC 2.4.0

Generate a rand hash.

No Hooks.

Return

String. Nothing.

Usage

wc_rand_hash();

Changelog

Since 2.4.0 Introduced.

Code of wc_rand_hash() WC 5.3.0

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

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