wc_rand_hash()
Generate a rand hash.
Description Description
Return Return
(string)
Source Source
File: includes/wc-core-functions.php
function wc_rand_hash() { if ( ! function_exists( 'openssl_random_pseudo_bytes' ) ) { return sha1( wp_rand() ); } return bin2hex( openssl_random_pseudo_bytes( 20 ) ); // @codingStandardsIgnoreLine }
Changelog Changelog
Version | Description |
---|---|
2.4.0 | Introduced. |