aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2016-03-23 10:18:22 +0100
committerTristan Darricau <tristan.darricau@sensiolabs.com>2016-03-23 10:18:22 +0100
commitdc097221d8444bb94e3ed9956d4f9d2c3ae09543 (patch)
treef2c7769e965683569962c4c03f48967c744fa647 /phpBB/includes/functions.php
parenteca4726f3c2fda312b3150b7b252a300d4603fbe (diff)
downloadforums-dc097221d8444bb94e3ed9956d4f9d2c3ae09543.tar
forums-dc097221d8444bb94e3ed9956d4f9d2c3ae09543.tar.gz
forums-dc097221d8444bb94e3ed9956d4f9d2c3ae09543.tar.bz2
forums-dc097221d8444bb94e3ed9956d4f9d2c3ae09543.tar.xz
forums-dc097221d8444bb94e3ed9956d4f9d2c3ae09543.zip
[ticket/14550] Fix the number of characters returned by unique_id()
PHPBB3-14450
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));
}
/**