1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-29 04:50:51 +02:00

[ticket/15693] Update tests to reflect changes to gen_rand_string()

PHPBB3-15693
This commit is contained in:
Marc Alexander
2018-06-17 11:01:11 +02:00
parent f75c400db4
commit 9e50e52fa5
2 changed files with 12 additions and 2 deletions

View File

@@ -66,6 +66,8 @@ function set_var(&$result, $var, $type, $multibyte = false)
/**
* Generates an alphanumeric random string of given length
*
* @param int $num_chars Length of random string, defaults to 8
*
* @return string
*/
function gen_rand_string($num_chars = 8)
@@ -78,6 +80,8 @@ function gen_rand_string($num_chars = 8)
* Generates a user-friendly alphanumeric random string of given length
* We remove 0 and O so users cannot confuse those in passwords etc.
*
* @param int $num_chars Length of random string, defaults to 8
*
* @return string
*/
function gen_rand_string_friendly($num_chars = 8)