Merge pull request #661 from samsonasik/more-entropy-true-md5

set more_entropy = true on uniquid at md5 random_string helper
This commit is contained in:
Lonnie Ezell 2017-08-07 08:21:39 -05:00 committed by GitHub
commit f3ba8a5f41

View File

@ -742,7 +742,7 @@ if ( ! function_exists('random_string'))
return substr(str_shuffle(str_repeat($pool, ceil($len / strlen($pool)))), 0, $len);
case 'md5':
return md5(uniqid(mt_rand()));
return md5(uniqid(mt_rand(), true));
case 'sha1':
return sha1(uniqid(mt_rand(), true));
}