llms_rest_random_hash()
Generate a random hash.
Return Return
(string)
Source Source
File: libraries/lifterlms-rest/includes/llms-rest-functions.php
function llms_rest_random_hash() {
if ( ! function_exists( 'openssl_random_pseudo_bytes' ) ) {
return sha1( wp_rand() );
}
return bin2hex( openssl_random_pseudo_bytes( 20 ) );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0-beta.1 | Introduced. |