function _generate_hash in Ubercart 5
Generate hash used for unique download URLs
@return: A string containing the 32 hex character hash
Parameters
$values: An array of values that will be used to generate the hash
1 call to _generate_hash()
- _user_table_action in uc_file/
uc_file.module - Perform a specified action on the uc_file_users table
File
- uc_file/
uc_file.module, line 1376 - Allows products to be associated with downloadable files.
Code
function _generate_hash($values) {
$input = mt_rand();
foreach ($values as $value) {
$input .= $value;
}
return md5($input);
}