X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/d8529b7477be1783bf47d5ec9c1bfe98b0bf4f07..c793d074896f3b22e18d7c3ad45a517f5cebaa1c:/lib/functions.php diff --git a/lib/functions.php b/lib/functions.php index 5a5316c..1dd03e5 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -321,7 +321,7 @@ function jirafeau_delete_file($hash) /** hash file's content - * @param $method hash method, see 'file_hash' option. 'md5' or 'md5_outside'. + * @param $method hash method, see 'file_hash' option. Valid methods are 'md5', 'md5_outside' or 'random' * @param $file_path file to hash * @returns hash string */ @@ -332,6 +332,8 @@ function jirafeau_hash_file($method, $file_path) return jirafeau_md5_outside($file_path); case 'md5': return md5_file($file_path); + case 'random': + return jirafeau_gen_random(32); } return md5_file($file_path); }