diff --git a/lib/private/security/securerandom.php b/lib/private/security/securerandom.php
index 348d04c9ccc57ab043a18d0c0d56b1e535bec3f5..409285fd09854b64b4f13554c17ebbf1fb7b5c08 100644
--- a/lib/private/security/securerandom.php
+++ b/lib/private/security/securerandom.php
@@ -76,7 +76,7 @@ class SecureRandom implements ISecureRandom {
 
 	/**
 	 * Generate a random string of specified length.
-	 * @param string $length The length of the generated string
+	 * @param int $length The length of the generated string
 	 * @param string $characters An optional list of characters to use if no characterlist is
 	 * 							specified all valid base64 characters are used.
 	 * @return string
diff --git a/lib/public/security/isecurerandom.php b/lib/public/security/isecurerandom.php
index 69e6ec21b136ca19df5ed4898202aa5d28a80dfa..cbe2d4e0d5629925719cfaa7fa998cccb2ae3fd2 100644
--- a/lib/public/security/isecurerandom.php
+++ b/lib/public/security/isecurerandom.php
@@ -69,7 +69,7 @@ interface ISecureRandom {
 
 	/**
 	 * Generate a random string of specified length.
-	 * @param string $length The length of the generated string
+	 * @param int $length The length of the generated string
 	 * @param string $characters An optional list of characters to use if no characterlist is
 	 * 							specified all valid base64 characters are used.
 	 * @return string