mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
- fixed gen_rand_string
git-svn-id: file:///svn/phpbb/trunk@5856 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
34fcc7dbe1
commit
14ed732bff
1 changed files with 1 additions and 0 deletions
|
@ -125,6 +125,7 @@ function set_config($config_name, $config_value, $is_dynamic = false)
|
|||
function gen_rand_string($num_chars = 8)
|
||||
{
|
||||
$rand_str = unique_id();
|
||||
$rand_str = str_replace('0', 'Z', strtoupper(base_convert($rand_str, 16, 35)));
|
||||
|
||||
return substr($rand_str, 0, $num_chars);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue