diff --git a/include/functions.inc.php b/include/functions.inc.php index f9e4643..d6796d8 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -4,7 +4,8 @@ function mkhash() { //$hash = getenv('HTTP_USER_AGENT'); //$hash .= getenv('REMOTE_ADDR').time().rand(1,9); //return md5($hash); - return substr(time(),-6,3).preg_replace('/([ ])/e', 'chr(rand(97,122))', ' ').substr(time(),-3); + //return substr(time(),-6,3).preg_replace('/([ ])/e', 'chr(rand(97,122))', ' ').substr(time(),-3); + return substr(uniqid(), 0, 11); }