aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-03-23 14:47:01 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-03-23 14:47:01 +0100
commit1e0cda3e8affba9b76cdbdcc655316389668f3bd (patch)
treef2c7769e965683569962c4c03f48967c744fa647 /phpBB/includes/functions.php
parenteca4726f3c2fda312b3150b7b252a300d4603fbe (diff)
parentdc097221d8444bb94e3ed9956d4f9d2c3ae09543 (diff)
downloadforums-1e0cda3e8affba9b76cdbdcc655316389668f3bd.tar
forums-1e0cda3e8affba9b76cdbdcc655316389668f3bd.tar.gz
forums-1e0cda3e8affba9b76cdbdcc655316389668f3bd.tar.bz2
forums-1e0cda3e8affba9b76cdbdcc655316389668f3bd.tar.xz
forums-1e0cda3e8affba9b76cdbdcc655316389668f3bd.zip
Merge pull request #4235 from Nicofuma/ticket/14550
[ticket/14550] Fix the number of characters returned by unique_id()
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index be51a7342d..c9f2601e31 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -96,7 +96,7 @@ function gen_rand_string_friendly($num_chars = 8)
*/
function unique_id()
{
- return bin2hex(random_bytes(6));
+ return bin2hex(random_bytes(8));
}
/**