Skip to content

Commit f2cdc9b

Browse files
chore(SecureRandom): intermediate fixup
Signed-off-by: Josh <josh.t.richards@gmail.com>
1 parent cf828f3 commit f2cdc9b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

lib/private/Security/SecureRandom.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@
1818
*/
1919
class SecureRandom implements ISecureRandom {
2020
#[\Override]
21+
/**
22+
* Generate a secure random string of specified length.
23+
* @param int $length The length of the generated string
24+
* @param string $characters An optional list of characters to use if no character list is
25+
* specified all valid base64 characters are used.
26+
* @throws \LengthException if an invalid length is requested
27+
*/
2128
public function generate(
2229
int $length,
2330
string $characters = ISecureRandom::CHAR_BASE64_RFC4648,

0 commit comments

Comments
 (0)