aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2021-07-16 12:46:20 +0200
committerGitHub <noreply@github.com>2021-07-16 12:46:20 +0200
commitf86f594a3a867018a3354e7d26a9932bb0eb11a1 (patch)
tree422922d5ed4c719568a339f508958d0a59f08338 /lib/public
parent23df99dbe080f113c6f8af091e8664979fb59358 (diff)
parent91051d92073f19908947cf05560de7e78ad80b86 (diff)
downloadnextcloud-server-f86f594a3a867018a3354e7d26a9932bb0eb11a1.tar.gz
nextcloud-server-f86f594a3a867018a3354e7d26a9932bb0eb11a1.zip
Merge pull request #27860 from J0WI/alphanumeric-rnd
Introduce ISecureRandom::CHAR_ALPHANUMERIC
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Security/ISecureRandom.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/public/Security/ISecureRandom.php b/lib/public/Security/ISecureRandom.php
index 530a3b9df8f..250ecd25358 100644
--- a/lib/public/Security/ISecureRandom.php
+++ b/lib/public/Security/ISecureRandom.php
@@ -47,6 +47,7 @@ interface ISecureRandom {
public const CHAR_LOWER = 'abcdefghijklmnopqrstuvwxyz';
public const CHAR_DIGITS = '0123456789';
public const CHAR_SYMBOLS = '!\"#$%&\\\'()*+,-./:;<=>?@[\]^_`{|}~';
+ public const CHAR_ALPHANUMERIC = self::CHAR_UPPER . self::CHAR_LOWER . self::CHAR_DIGITS;
/**
* Characters that can be used for <code>generate($length, $characters)</code>, to