aboutsummaryrefslogtreecommitdiffstats
path: root/databases/adminer/files/patch-adminer_include_functions.inc.php
blob: fa627837460af61a3fa6d8ef71f33e4c4e483cb4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- adminer/include/functions.inc.php.orig	2025-10-19 12:05 UTC
+++ adminer/include/functions.inc.php
@@ -761,7 +761,7 @@
 * @return string 32 hexadecimal characters
 */
 function rand_string(): string {
-	return md5(uniqid(strval(mt_rand()), true));
+	return bin2hex(random_bytes(32));
 }
 
 /** Format value to use in select