summaryrefslogtreecommitdiffstats
path: root/lib/public/Security/ISecureRandom.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Security/ISecureRandom.php')
-rw-r--r--lib/public/Security/ISecureRandom.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/public/Security/ISecureRandom.php b/lib/public/Security/ISecureRandom.php
index 76e207fbbd8..235b3033c44 100644
--- a/lib/public/Security/ISecureRandom.php
+++ b/lib/public/Security/ISecureRandom.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/**
* @copyright Copyright (c) 2016, ownCloud, Inc.
*
@@ -87,7 +88,7 @@ interface ISecureRandom {
* @return string
* @since 8.0.0
*/
- public function generate($length,
- $characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/');
+ public function generate(int $length,
+ string $characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'): string;
}