From de4e930446dcff76d069ef67086293d864b55813 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 20 May 2020 15:05:54 +0200 Subject: [PATCH] Implement StringUtil::getRandomID() using PasswordUtil::getRandomPassword() see 2ca6835c56fd478b8a685bcf2be72245a8231c37 Closes #3262 --- wcfsetup/install/files/lib/util/StringUtil.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } /** -- 2.20.1