Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/password_policy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-03-19 12:10:08 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-03-19 12:10:08 +0300
commitb1ffcd1121e8c8ad16aa6b1a73e07dfdfe7bb1d5 (patch)
tree2ea3de1cdce8d640f6d44ad7e00d4ab6cbf2e0a6 /lib
parent631afc808009da31c11034add25b8cc1e10aa8a2 (diff)
Shuffle the string
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/Generator.php3
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;
}
}