diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-19 12:10:08 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-19 12:10:08 +0300 |
commit | b1ffcd1121e8c8ad16aa6b1a73e07dfdfe7bb1d5 (patch) | |
tree | 2ea3de1cdce8d640f6d44ad7e00d4ab6cbf2e0a6 /lib | |
parent | 631afc808009da31c11034add25b8cc1e10aa8a2 (diff) |
Shuffle the string
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Generator.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Generator.php b/lib/Generator.php index 1d4dd5a..24000ea 100644 --- a/lib/Generator.php +++ b/lib/Generator.php @@ -91,6 +91,9 @@ class Generator { } } + // Shuffle string so the order is random + $password = str_shuffle($password); + return $password; } } |