Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/databases/adminer/files/patch-adminer_include_functions.inc.php
20810 views
1
--- adminer/include/functions.inc.php.orig 2025-10-19 12:05 UTC
2
+++ adminer/include/functions.inc.php
3
@@ -761,7 +761,7 @@
4
* @return string 32 hexadecimal characters
5
*/
6
function rand_string(): string {
7
- return md5(uniqid(strval(mt_rand()), true));
8
+ return bin2hex(random_bytes(32));
9
}
10
11
/** Format value to use in select
12
13