From: Tim Düsterhus Date: Wed, 20 May 2020 13:05:54 +0000 (+0200) Subject: Implement StringUtil::getRandomID() using PasswordUtil::getRandomPassword() X-Git-Tag: 3.1.15~29 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=de4e930446dcff76d069ef67086293d864b55813;p=GitHub%2FWoltLab%2FWCF.git Implement StringUtil::getRandomID() using PasswordUtil::getRandomPassword() see 2ca6835c56fd478b8a685bcf2be72245a8231c37 Closes #3262 --- diff --git a/wcfsetup/install/files/lib/util/StringUtil.class.php b/wcfsetup/install/files/lib/util/StringUtil.class.php index 92a477be7e..e52d9b44a2 100644 --- a/wcfsetup/install/files/lib/util/StringUtil.class.php +++ b/wcfsetup/install/files/lib/util/StringUtil.class.php @@ -47,7 +47,7 @@ final class StringUtil { * @return string */ public static function getRandomID() { - return self::getHash(microtime() . uniqid(mt_rand(), true)); + return self::getHash(PasswordUtil::getRandomPassword(30)); } /**